From 9b9745a35baa8f230293bb3b0c1b539a1ab5b858 Mon Sep 17 00:00:00 2001 From: Hasith Date: Wed, 1 Sep 2021 13:15:41 +0530 Subject: Bring cursor to the new line's end after wrapping After bringing the last word to a newline, add command to move the cursor to the new line's end. This positions the cursor for continuing at the last character typed. --- plugins/autowrap.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/autowrap.lua') diff --git a/plugins/autowrap.lua b/plugins/autowrap.lua index 38f8eb3..c9dde6d 100644 --- a/plugins/autowrap.lua +++ b/plugins/autowrap.lua @@ -32,5 +32,6 @@ DocView.on_text_input = function(self, ...) command.perform("reflow:reflow") command.perform("doc:move-to-next-char") command.perform("doc:move-to-previous-char") + command.perform("doc:move-to-end-of-line") end end -- cgit v1.2.3