diff options
author | Brandon Simmons <34775764+simmsbra@users.noreply.github.com> | 2023-04-06 11:08:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-07 00:08:46 +0800 |
commit | 824639c7c17c4870cde83dd28fed7ed6be0ed4c9 (patch) | |
tree | 9e1da86556e8215c7f90841458cc8947e6c66a0d /src/nvim/ops.c | |
parent | dd80ee0ca948bb548a8af804523ea7ea29c18279 (diff) | |
download | rneovim-824639c7c17c4870cde83dd28fed7ed6be0ed4c9.tar.gz rneovim-824639c7c17c4870cde83dd28fed7ed6be0ed4c9.tar.bz2 rneovim-824639c7c17c4870cde83dd28fed7ed6be0ed4c9.zip |
fix(folds): handle visual blockwise indent insertion correctly (#22898)
Previously, the fold information was incorrect because it wasn't
being updated during the blockwise insertion.
(Solution by zeertzjq)
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index d2e9fda7d9..c6564e427e 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -623,9 +623,9 @@ static void block_insert(oparg_T *oap, char *s, int b_insert, struct block_def * } } // for all lnum - changed_lines(oap->start.lnum + 1, 0, oap->end.lnum + 1, 0L, true); - State = oldstate; + + changed_lines(oap->start.lnum + 1, 0, oap->end.lnum + 1, 0L, true); } /// Handle reindenting a block of lines. |