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)
This commit is contained in:
Brandon Simmons
2023-04-06 11:08:46 -05:00
committed by GitHub
parent dd80ee0ca9
commit 824639c7c1
2 changed files with 12 additions and 2 deletions

View File

@@ -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.