summaryrefslogtreecommitdiff
blob: a4dfd74345a4d0c979b1c24bc67f2152fb7a47e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- auto-fu.zsh
+++ auto-fu.zsh
@@ -287,7 +287,7 @@
 
 afu-eof-maybe () {
   local eof="$1"; shift
-  [[ "$BUFFER" != '' ]] || { $eof; return }
+  [[ -z $BUFFER ]] && { $eof; return }
   "$@"
 }