OSDN Git Service

exit quickargs without args
authorpaperbenni <paperbenni@gmail.com>
Wed, 3 Jun 2020 08:59:30 +0000 (10:59 +0200)
committerpaperbenni <paperbenni@gmail.com>
Wed, 3 Jun 2020 08:59:30 +0000 (10:59 +0200)
programs/quickmenu

index 4ea06eb..f02a1d9 100755 (executable)
@@ -135,6 +135,7 @@ close)
 
     if grep -q "^#instantosarg" "$QUICKCHOICE"; then
         QUICKARGS="$(imenu -i options)"
+        [ -z "$QUICKARGS" ] && exit
     fi
 
     if grep -q "^#instantosterm" "$QUICKCHOICE"; then