Skip to content

CursorDown on folded line expands fold; mouse fold hides caret #190

@tig

Description

@tig

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions