bug: Hex code `0x17` doesn't work with some word boundaries

Resolved 💬 4 comments Opened Apr 16, 2025 by HeroBrian389 Closed Apr 17, 2025

I have 0x17 mapped to ctrl+backspace. This hex code allows me to delete single words.

There is an issue with certain word boundaries though. I'll outline some examples of expected behaviour vs reality to illustrate. The cursor will be denoted with |.

In each case, I will do ctrl+backspace (which sends the hex code 0x17).

Case 1

String 1:
I want you to refactor my view|

Expected output:
I want you to refactor my|

Actual output:
I want you to refactor my|

This case works as intended. However, let's consider the next case:

Case 2

String 2:
I want you to refactor my view |

Expected output:
I want you to refactor my|

Actual output:
``

It deletes the whole line, rather than the last word in the sequence (likely because of word boundary issues where a trailing space after the last word treats the whole line as a word?).

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗