From 7f134279b78d6fa66e6ca271f95ba3633163edf8 Mon Sep 17 00:00:00 2001 From: rysiek Date: Fri, 3 Nov 2017 10:26:44 -0200 Subject: functions: handling vi better (no spurious error output --- lib/keyringer/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3