vim-patch:8.2.4955: text property in wrong position after auto-indent (#40766)

Problem:    Text property in wrong position after auto-indent.
Solution:   Adjust text property columns. (closes vim/vim#10422, closes vim/vim#7719)

788c06a249

Co-authored-by: LemonBoy <thatlemon@gmail.com>
This commit is contained in:
Jan Edmund Lazo
2026-07-16 02:48:20 -04:00
committed by GitHub
parent 1741da8412
commit 16c25e8aee

View File

@@ -991,7 +991,8 @@ bool open_line(int dir, int flags, int second_line_indent, bool *did_do_comment)
char *next_line = NULL; // copy of the next line
char *p_extra = NULL; // what goes to next line
colnr_T less_cols = 0; // less columns for mark in new line
colnr_T less_cols_off = 0; // columns to skip for mark adjust
colnr_T less_cols_off = 0; // columns to skip for mark and
// extmark adjustment
pos_T old_cursor; // old cursor position
colnr_T newcol = 0; // new cursor column
int newindent = 0; // auto-indent of the new line