aboutsummaryrefslogtreecommitdiff
path: root/src/clint.py
diff options
context:
space:
mode:
authorMatthew Malcomson <hardenedapple@gmail.com>2017-03-31 00:21:26 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-03-31 01:21:26 +0200
commit3a9dd13f9e6471215a738cf22bf180e60a2e0bcd (patch)
tree6eb21896fa2240ebaa00845884f84ab6631e235d /src/clint.py
parent831eb2a9bf9fdffc1b6942e4c43bc2458f4af794 (diff)
downloadrneovim-3a9dd13f9e6471215a738cf22bf180e60a2e0bcd.tar.gz
rneovim-3a9dd13f9e6471215a738cf22bf180e60a2e0bcd.tar.bz2
rneovim-3a9dd13f9e6471215a738cf22bf180e60a2e0bcd.zip
fold.c: more edge-cases when updating (#6207)
When foldUpdateIEMSRecurse() re-uses an existing fold, it misses the case where the existing fold spans from before startlnum to after firstlnum, the new fold does not span this range, and there is no "forced start" of a fold. We add a case for this in. Ensure that if there was no forced break in folds, we merge folds that now touch each other. Include testing for a tricky foldmethod=expr case that has never been a bug. This case works at the moment because of some effects that are not obvious when reading the code. A test for this could be useful to ensure a regression doesn't happen. vim-patch:8.0.0408
Diffstat (limited to 'src/clint.py')
0 files changed, 0 insertions, 0 deletions