From 9f1fb522f847fccfbaeed4906ad7bbb6e3eaea5d Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Wed, 7 Dec 2011 19:26:31 +0000 Subject: [PATCH] * fix -n/-z test of sane editor --- sane_editor | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sane_editor b/sane_editor index 44cf0af..03aab78 100755 --- a/sane_editor +++ b/sane_editor @@ -13,9 +13,9 @@ if [ -x /usr/bin/emacsclient ] && [ -x /usr/bin/emacs ]; then # reset the tempdir to deal with setuid things clearing it export TMPDIR="$(echo ~/tmp)"; if ( emacsclient -n -e '()' /dev/null); then - if [ -n "$DISPLAY" ]; then - exec emacsclient -nw "$@"; - else + if [ -z "$DISPLAY" ]; then + exec emacsclient -c -nw "$@"; + else exec emacsclient -c "$@"; fi; fi; -- 2.39.5