mirror of
https://github.com/neovim/neovim.git
synced 2026-07-17 14:41:33 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user