Skip to content

Fix blank lines being ignored#813

Merged
aminya merged 3 commits intoatom-minimap:masterfrom
sparklost:fix_blank_line
Oct 28, 2024
Merged

Fix blank lines being ignored#813
aminya merged 3 commits intoatom-minimap:masterfrom
sparklost:fix_blank_line

Conversation

@sparklost
Copy link
Copy Markdown
Contributor

Minimap drawing ignores blank lines and "glues" code lines together.
But this is not the case where there is indentation before those blank lines.
Screenshot From 2024-10-27 14-23-26
This makes some problems:

  • Highlighted on-screen area on the minimap is mismatched with what is really visible in the editor
  • Minimap scrolling is also mismatched because of this
  • git-diff gutter decorations are mismatched
  • plugins highlight wrong lines (see pictures)

Before changes:
old
Several blank lines are in the code before these lines.
Highlighted lines from minimap-bookmarks and minimap-selection plugins are mismatched on the minimap, with what is seen in the editor.

After changes:
new
Several blank lines are in the code before these lines.
Everything is perfectly matched.
And it might be even a little faster.

Should I rebuild dist/ with parcel for this PR, or it is done at new version release time?

Also, could some member please release new version so changes from this and previous PR are available to everyone.

@aminya
Copy link
Copy Markdown
Collaborator

aminya commented Oct 28, 2024

Thanks. Please include the dist changes

@sparklost
Copy link
Copy Markdown
Contributor Author

sparklost commented Oct 28, 2024

Note about creating dist:
Parcel throws "build failed" for missing dependency in atom-utils-plus:
So I manually added line "atom": "^1.40.11", under "dependencies": (line 41) in
./node_modules/atom-utils-plus/package.json.
Its probably upstream issue.

I also modified .gitignore so dist can be commited.
And ./package.json so new parcel versions can optimize dist (optimization for js is disabled by default).

@aminya aminya merged commit 55460b3 into atom-minimap:master Oct 28, 2024
@sparklost sparklost deleted the fix_blank_line branch October 28, 2024 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants