Commit Graph
4 Commits
Author SHA1 Message Date
Fouad MatinandGitHub fc7494cf3e fix: input keyboard shortcut opt+delete (#685) 2025-04-30 17:17:13 -07:00
1326b2087a fix(text-buffer): correct word deletion logic for trailing spaces (Ctrl+Backspace) (#131)
## Description
This fix resolves a bug where Ctrl+Backspace (hex 0x17) deletes the
entire line when the cursor is positioned after a trailing space.

## Problem
When the user has a line like "I want you to refactor my view " (with a
space at the end) and the cursor is after that space, Ctrl+Backspace
deletes the entire line instead of just removing the word "view".

## Solution
- Added a check to detect if the cursor is after spaces
- Modified the logic to delete only one space at a time in this case
- Added a unit test to verify this behavior

## Tests
All tests pass, including the new test that verifies the corrected
behavior.

---------

Signed-off-by: Alpha Diop <[email protected]>

Co-authored-by: Hanzo Dev <[email protected]>
2025-04-16 16:25:08 -07:00
Michael BolinandGitHub ad7397a3f2 Back out @lib indirection in tsconfig.json (#111) 2025-04-16 14:16:53 -07:00
Ilan Bigio bce28c1ace Initial commit
Signed-off-by: Ilan Bigio <[email protected]>
2025-04-16 12:56:08 -04:00