Improve evil-change's handling of screen-lines#1775
Improve evil-change's handling of screen-lines#1775justbur wants to merge 2 commits intoemacs-evil:masterfrom
Conversation
When the type is screen-line and multiple real lines are spanned, make evil-change behave like it does for the line type (e.g., by adding and indenting a new line after deletion). Partially fixes emacs-evil#1407
axelf4
left a comment
There was a problem hiding this comment.
This seems to break cc on the last continuation visual line as leftmost-point will refer to the start of the logical line.
Also what is the purpose of the (> nlines 1) check? For handling the last buffer line the special case in evil-delete needs to be extended to screen-line (e.g. 2cc).
|
(Sorry for the delay)
I'm not sure what you mean by "break". I don't see any obvious problems. Maybe you could give an example?
The idea was that if you are in the middle of a long line that is wrapped and you select a single visual line you don't want to introduce a line break after
Thanks, added a fix |
When the type is screen-line and multiple real lines are spanned, make evil-change behave like it does for the line type (e.g., by adding and indenting a new line after deletion).
Partially fixes #1407