diff options
-rw-r--r-- | plugins/lfautoinsert.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/lfautoinsert.lua b/plugins/lfautoinsert.lua index 39715b3..0ea7b9d 100644 --- a/plugins/lfautoinsert.lua +++ b/plugins/lfautoinsert.lua @@ -49,6 +49,9 @@ command.add("core.docview", { if doc.lines[line+1] == doc.lines[line+2] then doc:remove(line+1, 1, line+2, 1) end + elseif col < #doc.lines[line] then + command.perform("doc:newline") + command.perform("doc:move-to-previous-line") end command.perform("doc:indent") end |