Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: indicator panel update (n++ optimization) #128

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

sieukrem
Copy link
Owner

@sieukrem sieukrem commented Oct 7, 2024

The newest version of N++ updates indicators only for visible area in the view and not for all existing lines of the document. The smart highlighter used to use this information to update the indicator panel.

The user needs either scroll through entire document to force an update of the entire indicator panel or switch from one document to another and back.

This PR handles the N++ smart highlighter messages as if the entire document needs an indicators update.

Closes #125

@sieukrem sieukrem force-pushed the fix/indicator-panel-update branch from eda1523 to 271469d Compare October 8, 2024 06:24
Schedule 200ms chunks to update entire document
so that smart highlighter optimization of Npp
does not influence functions of indicator panel
@sieukrem sieukrem force-pushed the fix/indicator-panel-update branch from 271469d to 72bbbc5 Compare October 8, 2024 06:27
@sieukrem sieukrem marked this pull request as ready for review October 8, 2024 18:25
@sieukrem sieukrem merged commit 55e20d1 into master Oct 8, 2024
4 checks passed
@sieukrem sieukrem deleted the fix/indicator-panel-update branch October 8, 2024 18:26
@011V32
Copy link

011V32 commented Oct 9, 2024

Is the nppPluginList updated automatically?

@sieukrem
Copy link
Owner Author

Is the nppPluginList updated automatically?

sadly not! I will file a PR to the repo.

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.

Smart highlighter not working correct
2 participants