diff options
author | rysiek <rysiek@example.org> | 2017-11-03 10:26:44 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-11-03 10:26:44 -0200 |
commit | 7f134279b78d6fa66e6ca271f95ba3633163edf8 (patch) | |
tree | a5980ae84abef1510118bce1fbccd97802b1f4b4 /lib | |
parent | 1016e50bf46192166938b612e516f556ac674ebf (diff) | |
download | keyringer-7f134279b78d6fa66e6ca271f95ba3633163edf8.tar.gz keyringer-7f134279b78d6fa66e6ca271f95ba3633163edf8.tar.bz2 |
functions: handling vi better (no spurious error output
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/keyringer/functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions index 0d96288..e3f89d9 100755 --- a/lib/keyringer/functions +++ b/lib/keyringer/functions @@ -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 |