aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/lfautoinsert.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/lfautoinsert.lua b/plugins/lfautoinsert.lua
index 067b414..2c59e41 100644
--- a/plugins/lfautoinsert.lua
+++ b/plugins/lfautoinsert.lua
@@ -46,6 +46,9 @@ command.add("core.docview", {
command.perform("doc:newline")
core.active_view:on_text_input(close)
command.perform("doc:move-to-previous-line")
+ if doc.lines[line+1] == doc.lines[line+2] then
+ doc:remove(line+1, 1, line+2, 1)
+ end
end
command.perform("doc:indent")
end