Page 1 of 1

[v16.12] - CTRL-DEL bug

Posted: 13 Mar 2024 13:00
by vha
Have following text:

Code: Select all

aaa bbb ccc
aaa _bbb ccc
Cursor at the end of "aaa" on the 1st line
CTRL-DEL -> all spaces up to "bbb" are deleted -> OK

Cursor at the end of "aaa" on the 2nd line
CTRL-DEL -> all characters up to "ccc" are deleted -> Not OK


vha

Re: [v16.12] - CTRL-DEL bug

Posted: 16 Mar 2024 13:25
by Rickard Johansson
It seems the default behavior in Sublime and VS Code is:

One space between aaa and bbb (or _bbb) and hit Ctrl+Del:

Code: Select all

aaa| ccc
aaa| ccc
Two, or more spaces, between aaa and bbb and hit Ctrl+Del:

Code: Select all

aaa|bbb ccc
aaa|_bbb ccc
I'm not entirely sure I like it though. Maybe Ctrl+Del should delete one or more spaces. And only delete words if the next character is a non-space character...

Re: [v16.12] - CTRL-DEL bug

Posted: 17 Mar 2024 09:56
by vha
Rickard Johansson wrote: 16 Mar 2024 13:25 I'm not entirely sure I like it though. Maybe Ctrl+Del should delete one or more spaces. And only delete words if the next character is a non-space character...
Totaly agree with that!

vha