]> gitweb.fluxo.info Git - keyringer.git/commitdiff
functions: handling vi better (no spurious error output
authorrysiek <rysiek@example.org>
Fri, 3 Nov 2017 12:26:44 +0000 (10:26 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 3 Nov 2017 12:26:44 +0000 (10:26 -0200)
lib/keyringer/functions

index 0d96288a0b242a578aec8933ce76467e9e76b1b7..e3f89d9bcfb7555d0fb36d0bbf49929a4034ecc0 100755 (executable)
@@ -293,7 +293,7 @@ function keyringer_set_env {
   fi
 
   # Avoid viminfo, see https://keyringer.pw/trac/ticket/50
-  if $EDITOR --help | grep -q -e "^VIM"; then
+  if $EDITOR --help 2>&1 | grep -q -e "^VIM"; then
     if ! echo $EDITOR | grep -q -- "-i NONE"; then
       EDITOR="$EDITOR -S $SHARE/editors/vim"
     fi