Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

marker position is wrong when folding code blocks #20

Description

@zypA13510

In Atom, the body of functions/objects etc. can be folded into one line by clicking the arrow beside line number (I think this is part of the core functionalities). Marker created by scroll-marker will be at wrong position if code blocks are folded (more obvious if you fold a large chunk of code).

I think there would be two things that need to be changed:

  1. The calculation of marker's vertical position needs to account for folding.
  2. If any marker would be set on a folded (invisible) line, show it on the first line of that block instead.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions