dance icon indicating copy to clipboard operation
dance copied to clipboard

incorrect character highlight during selection

Open jbytes1027 opened this issue 3 years ago • 4 comments

There is a dark highlight incorrectly highlighting one character before the end of the selection when the cursor is at the end of a selection but when the cursor is to the start of a selection the highlight is in the correct place on the first character of the selection.

Character mode is enabled.

https://user-images.githubusercontent.com/50090107/122505305-12c25080-cfca-11eb-85eb-8756a69192c8.mp4

jbytes1027 avatar Jun 18 '21 04:06 jbytes1027

probably related and also an issue - entering insert mode with "a" is one character earlier than it should be when selecting something when in character mode.

jbytes1027 avatar Jun 18 '21 17:06 jbytes1027

Strangely, I can neither replicate the issue with the dark highlight, nor the insertion with a being on the left of where it should be. If you want to debug things yourself and tell me what's wrong, the code for the highlighting is here and the code a is here.

Just in case, are you running Dance 0.5.1?

71 avatar Jun 18 '21 17:06 71

I also witnessed this dark highlight as shown in the video. I was able to pinpoint its apparition from having "selectionBehavior": "character" option in normal mode.

Delapouite avatar Feb 22 '22 15:02 Delapouite

Also occurs with me.

wmstack avatar Mar 03 '24 05:03 wmstack