Statusbar selection mode updating

Solved bugs are moved into this topic...
Post Reply
qwerky
Posts: 172
Joined: 21.10.2013 00:58

Statusbar selection mode updating

Post by qwerky »

When toggling from Normal selection mode to Column selection mode, or vice versa, the statusbar indicator does not change, until another key is pressed, such as move caret up, down, left, or right, then the statusbar indicator updates. It should be immediate when the mode is changed.
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post by main Alexey »

sorry but I cannot repro this. on linux gtk2 + windows 10.
cudatext 1.185.
i tried 2 methods of toggling the sel-mode: 1) click on the statusbar cell ; 2) command palette's item calling.
yes, small pause exists! but it is as designed. pause of timerIdle.
qwerky
Posts: 172
Joined: 21.10.2013 00:58

Post by qwerky »

CudaText 1.185 on Windows 10. Funny, I tried the two methods you suggested and they both work without issue.

What doesn't work, is toggling the selection mode by key (I have assigned Ctrl+L to "column selection without key modifier: toggle", since I change the mode frequently). When I do that, the statusbar does not update until I move the caret. Strange, that calling the same function from command palette or from key behaves differently!
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post by main Alexey »

now we found the repro. I just fixed it in git.
qwerky
Posts: 172
Joined: 21.10.2013 00:58

Post by qwerky »

Great, thanks!
Post Reply