-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Avoid re-folding; use existing folds
This commit changes the way that the folding function works. Instead of always creating a new fold (which is what the function previously did), it now looks to see if the cursor is already in an open fold, and if so, it will simply close the fold. If there is no fold, one will be created following the usual logic.
- Loading branch information
1 parent
f10310d
commit ed3452a
Showing
1 changed file
with
20 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters