Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make skipfold actually move the cursor #276
commit e914b73 changed the line call cursor(foldend + 1, 1) to call line(foldedge) call col(a:reverse ? 1 : '$') This is obviously nonsense - in the end, skipfold() never actually moves the cursor when it says so. The reason no one has caught this so far is that wherever we use the function, we _continue_ the search loops in this case (on return value `1`), go on finding the next match, so if the fold is contained by the window area, we will eventually reach a target outside the fold anyway, if there is one (by doing some unnecessary work). fix #274
- Loading branch information