Folding navigation and caret issues
1. CursorDown on a folded line opens the fold
When the caret is on a line immediately above a folded region and the user presses CursorDown, the fold is expanded instead of moving the caret below the folded region.
Expected: CursorDown skips over the folded region and places the caret on the first visible line after it (standard behavior in VS Code, Sublime, etc.).
Actual: The fold is opened/expanded, revealing all hidden lines.
2. Mouse-clicking the fold gutter causes the primary caret to disappear
When using the mouse to toggle a fold (clicking the fold indicator in the gutter), the primary cursor/caret disappears from the editor. It reappears on the next keyboard action, but the visual feedback is lost until then.
Expected: Folding/unfolding via mouse should not affect caret visibility. The caret should remain at its current position (or, if it was inside the now-folded region, move to the fold line).
Folding navigation and caret issues
1. CursorDown on a folded line opens the fold
When the caret is on a line immediately above a folded region and the user presses CursorDown, the fold is expanded instead of moving the caret below the folded region.
Expected: CursorDown skips over the folded region and places the caret on the first visible line after it (standard behavior in VS Code, Sublime, etc.).
Actual: The fold is opened/expanded, revealing all hidden lines.
2. Mouse-clicking the fold gutter causes the primary caret to disappear
When using the mouse to toggle a fold (clicking the fold indicator in the gutter), the primary cursor/caret disappears from the editor. It reappears on the next keyboard action, but the visual feedback is lost until then.
Expected: Folding/unfolding via mouse should not affect caret visibility. The caret should remain at its current position (or, if it was inside the now-folded region, move to the fold line).