I have these in my .joerc to make Ctrl+Shift+Left/Right highlight the previous / next word:
begin_marking,nextword,toggle_marking ^[ [ 1 ; 6 C
begin_marking,prevword,toggle_marking ^[ [ 1 ; 6 D
I open a file containing this one line:
somevalue = 12345
I press Ctrl+Shift+Right a few times to highlight it all.
At the first keypress, the cursor jumps over somevalue and highlights accordingly. At the next two keypresses, the cursor jumps over a space and then the equals sign, but at both cases these don't get highlighted. The fourth time it jumps over 12345 and it's all highlighted.
Similarly. Start over. Simply move the cursor to the end of the line (e.g. using the End key), no highlighting yet. Press Ctrl+Shift+Left three times: the text is highlighted as expected. Then press Ctrl+Shift+Right repeatedly to shrink the highlighted area. Around the = sign it's not shrank as expected, in a similar manner to the first test.
Just noticed an even bigger problem: After this visual glitch, he actual data that's selected is not what it should be, nor what's visually shown.
Start over, open this file. Press Ctrl+Shift+Right two or three times. As shown above, the visually highlighted part is not what it should be. Now move the cursor (without highlighting) to the end of the line, or to the next line. Press Ctrl+K C to copy. The whole line somevalue = 12345 is copied.
Start over. Open the file. Press Ctrl+Shift+Right two or three times, as previously. Move the cursor (without highlighting) to after some, or after 123. Copy the text.
The text that gets copied is some in the first case, somevalue = 123 in the second case.
So it looks like the selection doesn't have a fixed endpoint, it's from the start point to wherever the cursor is.
Reproducible with 4.6 as well as latest git main 1febe5940d5.
Might be related to #427, I'm not sure.