mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
fix: invoke changed_bytes when rewriting <Tab> char #25125
When tabstop and shiftwidth are not equal, tabs are inserted as individual spaces and then rewritten as tab characters in a second pass. That second pass did not call changed_bytes which resulted in events being omitted. Fixes #25092
This commit is contained in:
@@ -4429,9 +4429,8 @@ static bool ins_tab(void)
|
||||
}
|
||||
}
|
||||
if (!(State & VREPLACE_FLAG)) {
|
||||
extmark_splice_cols(curbuf, (int)fpos.lnum - 1, change_col,
|
||||
cursor->col - change_col, fpos.col - change_col,
|
||||
kExtmarkUndo);
|
||||
inserted_bytes(fpos.lnum, change_col,
|
||||
cursor->col - change_col, fpos.col - change_col);
|
||||
}
|
||||
}
|
||||
cursor->col -= i;
|
||||
|
Reference in New Issue
Block a user