about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--main.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index e865193..c56a290 100644
--- a/main.lua
+++ b/main.lua
@@ -471,6 +471,8 @@ function keychord_pressed(chord)
   elseif chord == 'backspace' then
     if #lines > 1 and lines[#lines] == '' then
       table.remove(lines)
+    elseif type(lines[#lines]) == 'table' then
+      table.remove(lines)  -- we'll add undo soon
     else
       local byteoffset = utf8.offset(lines[#lines], -1)
       if byteoffset then