summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrysiek <rysiek@example.org>2017-11-03 10:26:44 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-11-03 10:26:44 -0200
commit7f134279b78d6fa66e6ca271f95ba3633163edf8 (patch)
treea5980ae84abef1510118bce1fbccd97802b1f4b4 /lib
parent1016e50bf46192166938b612e516f556ac674ebf (diff)
downloadkeyringer-7f134279b78d6fa66e6ca271f95ba3633163edf8.tar.gz
keyringer-7f134279b78d6fa66e6ca271f95ba3633163edf8.tar.bz2
functions: handling vi better (no spurious error output
Diffstat (limited to 'lib')
-rwxr-xr-xlib/keyringer/functions2
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