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

Undo repaint event #71

Open
nagy135 opened this issue Dec 13, 2021 · 2 comments
Open

Undo repaint event #71

nagy135 opened this issue Dec 13, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@nagy135
Copy link

nagy135 commented Dec 13, 2021

Hello I noticed issue with repainting after "undo".

Use case:
on a line with color do "indent right" (>>) and press undo ...line is the same as before but highlight is shifted away from its correct location (over hex code in this case).

screen

@nagy135 nagy135 added the bug Something isn't working label Dec 13, 2021
@illia-danko
Copy link

Hello I noticed issue with repainting of color when undo is used.

Use case: on a line with color do "indent right" (>>) and press undo ...line is in position as before but highlight doesnt fit.

screen

Reproducible 100%. Not necessary that hex color value is inside quotes.

@nagy135
Copy link
Author

nagy135 commented Dec 17, 2021

I noticed that what actually happens in this "indent case", is that it moves correctly with the text when you indent, but when you "undo" back, it actually moves twice the distance, overshooting the previous location. It probably gets moved and then moves again with the text .....not sure what is happening but this might help with debugging (tldr: indent moves it 4 right, but undo 8 left instead of 4)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants