Page 1 of 1
Statusbar selection mode updating
Posted: 20.02.2023 19:33
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.
Posted: 21.02.2023 14:14
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.
Posted: 21.02.2023 21:48
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!
Posted: 22.02.2023 08:02
by main Alexey
now we found the repro. I just fixed it in git.
Posted: 22.02.2023 17:23
by qwerky
Great, thanks!