summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xmless3
-rw-r--r--mlesskey.example3
2 files changed, 6 insertions, 0 deletions
diff --git a/mless b/mless
index fa09c8f..395a8f8 100755
--- a/mless
+++ b/mless
@@ -76,6 +76,9 @@ while :; do
 			"+:e $(mscan -n .)$nl" //scan $(mscan -n :)
 	case "$?" in
 	0|1) exit $?;;
+	36) # $ goto end
+		mseq -C '$' 2>/dev/null
+		;;
 	78) # N go to next unseen message
 		nu=$(magrep -v -m1 :S .:) && mseq -C "$nu"
 		;;
diff --git a/mlesskey.example b/mlesskey.example
index 38b437e..59e2097 100644
--- a/mlesskey.example
+++ b/mlesskey.example
@@ -4,6 +4,9 @@ Q quit \1
 :cq quit \1
 [ prev-file
 ] next-file
+{ noaction E1\n
+} quit $
+$ quit $
 S noaction E//scan\n
 ` noaction E\#\n
 H quit H