Browse Source

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.
pull/65/head
Hasith 4 years ago
committed by GitHub
parent
commit
9b9745a35b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      plugins/autowrap.lua

1
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
Loading…
Cancel
Save