mirror of
https://github.com/neovim/neovim.git
synced 2025-01-02 17:33:28 -07:00
b1731fe1b5
Fix a problem when filtering manually folded lines When foldMarkAdjustRecurse() is called to adjust folds that start inside the range of lines that are being moved and end outside that range, it calculates `amount_after` for its recursive call incorrectly. The calculation assumes that folds inside the changed range are being deleted, but this is not always the case. This means nested folds that start after the changed range of lines are shifted an incorrect amount. We fix this by calculating the `amount_after` differently if the folds inside the changed range are not being deleted. |
||
---|---|---|
.. | ||
count_spec.lua | ||
fold_spec.lua | ||
K_spec.lua | ||
put_spec.lua | ||
undo_spec.lua |