aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolderpunk <solderpunk@sdf.org>2018-12-19 21:41:12 +0000
committerSolderpunk <solderpunk@sdf.org>2018-12-19 21:41:12 +0000
commit99e4109f6885460a84053b910af3189de29b2fcd (patch)
treefda5827be099ab0e6dfe0bcb8126745564e8139d
parentCheck more environment variables for the editor to use. (diff)
Allow quitting directly from the 'type' prompt.
-rwxr-xr-xtelem.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/telem.lua b/telem.lua
index 29ef3f8..6a40b95 100755
--- a/telem.lua
+++ b/telem.lua
@@ -530,6 +530,7 @@ type_dispatch["f"] = do_type_first
type_dispatch["l"] = do_type_last
type_dispatch["n"] = do_type_next
type_dispatch["p"] = do_type_prev
+type_dispatch["q"] = function() do_quit() os.exit() end
type_dispatch["r"] = do_type_reply
type_dispatch["s"] = do_type_save
type_dispatch["w"] = do_type_whole
@@ -543,7 +544,8 @@ function type_prompt_func()
"["..colourise("red","w").."]hole, " ..
"["..colourise("red","r").."]eply, " ..
"["..colourise("red","s").."]ave, " ..
- "["..colourise("red","d").."]one > "
+ "["..colourise("red","d").."]one, " ..
+ "["..colourise("red","q").."]uit > "
end
function do_type()