aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorHasith <it17142038@my.sliit.lk>2021-09-01 13:15:41 +0530
committerGitHub <noreply@github.com>2021-09-01 13:15:41 +0530
commit9b9745a35baa8f230293bb3b0c1b539a1ab5b858 (patch)
tree23329f638398f263a338be8c3d3ef24a9366bd6b /plugins
parenta6a074978898725896a02db5222d4e9248c38acd (diff)
downloadlite-xl-plugins-9b9745a35baa8f230293bb3b0c1b539a1ab5b858.tar.gz
lite-xl-plugins-9b9745a35baa8f230293bb3b0c1b539a1ab5b858.zip
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.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/autowrap.lua1
1 files changed, 1 insertions, 0 deletions
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