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

Use new API for relative line numbers #239

Merged
merged 2 commits into from
Jun 22, 2020

Conversation

citizenmatt
Copy link
Member

Use the new line number converter API to provide relative line numbers. This allows specifying the largest line number (the old API would get the converted line number of the last line, which could have a single digit, while the caret line could have multiple digits). This could also cause "flickering" as the expected width of the text gutter changes. Fixes VIM-1934 and VIM-1852.

Also fixes an issue where moving the text caret would re-initialise line numbers. Now it simply repaints. Fixes VIM-2021

@AlexPl292 AlexPl292 merged commit 8be075b into JetBrains:master Jun 22, 2020
@citizenmatt citizenmatt deleted the feature/line-numbers branch August 11, 2020 01:08
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