Problem:
with autoindent may delete whitespace from text added to the line by setline during Insert (e.g. from or CursorHoldI): "v v" becomes "vv".
Solution:
Only strip autoindent whitespace when the rest of the line is all whitespace.
Fix #19363
https://github.com/vim/vim/pull/20290
(2 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
@zeertzjq commented on this pull request.
In src/edit.c:
> + if (gchar_cursor() == NUL && curwin->w_cursor.col > 0) + --curwin->w_cursor.col;
This seems no longer needed.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
Thanks, looks better than my version
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
@glepnir pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()