diff options
author | Ilia Choly <ilia.choly@gmail.com> | 2023-09-15 06:45:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-15 03:45:51 -0700 |
commit | f5a09f1b035254f6ee773a1f88f79ab5913b48a0 (patch) | |
tree | c28c99b48b9a565aff5d0c8425b0e8bbcd8fa3c3 /src | |
parent | 28233bcb49067aaa70fa6e5fec14e2cc4bcaa315 (diff) | |
download | rneovim-f5a09f1b035254f6ee773a1f88f79ab5913b48a0.tar.gz rneovim-f5a09f1b035254f6ee773a1f88f79ab5913b48a0.tar.bz2 rneovim-f5a09f1b035254f6ee773a1f88f79ab5913b48a0.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/edit.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 06eb81be92..216f8a67db 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -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; |