CudaText icon indicating copy to clipboard operation
CudaText copied to clipboard

Highlight occurences: strange defect of highlighting

Open veksha opened this issue 2 years ago • 4 comments

  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:

https://user-images.githubusercontent.com/275333/234264146-df8acf62-b121-4745-9a7e-e0d59ce9d876.mp4

veksha avatar Apr 25 '23 11:04 veksha

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 avatar Apr 25 '23 11:04 Alexey-T

Common roots with #2342 .

Alexey-T avatar Apr 25 '23 11:04 Alexey-T

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

veksha avatar Apr 25 '23 11:04 veksha

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

Alexey-T avatar Apr 25 '23 11:04 Alexey-T