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

Highlight occurences: strange defect of highlighting #5022

Open
veksha opened this issue Apr 25, 2023 · 4 comments
Open

Highlight occurences: strange defect of highlighting #5022

veksha opened this issue Apr 25, 2023 · 4 comments

Comments

@veksha
Copy link
Contributor

veksha commented Apr 25, 2023

  1. text:
 int64aaa
 int64aaa
 int64aaa

indentation must be at least 1 space.

  1. in console execute: ed.attr(MARKERS_ADD, x=1, y=0, len=5, border_down=1)
  2. try to select first line with shift+left / shift+right. indentation must be in selection too!

you will see that eventually whole underlined text will be highlighted for some reason.

better to see it:

cudatext_m338JLkHD3.mp4
@Alexey-T
Copy link
Owner

what I see

Screenshot from 2023-04-25 14-36-53

so word is not 'selected', it has 'marker style'. your theme has the same color.

@Alexey-T
Copy link
Owner

Alexey-T commented Apr 25, 2023

Common roots with #2342 .

@Alexey-T Alexey-T added the bug label Apr 25, 2023
@veksha
Copy link
Contributor Author

veksha commented Apr 25, 2023

oh yes. the same. it's because attr marker is len=N instead of multiple markers with len=1.

@Alexey-T
Copy link
Owner

it was hard-to-fix (it may easily give regressions). postponed the issue.

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

No branches or pull requests

2 participants