ZIm/crates/vim/src/normal
Conrad Irwin 331b6e7e6e
Support "dtx" vim key combination when "x" is immediately to the right of the cursor (#6830)
Closes #4358

The bug originates on this line:
5db7e8f89e/crates/vim/src/motion.rs (L451)

- When running "dtx" on "ˇabcx", the range to delete is 0 -> 2 ("abc")
- When running "dtx" on "abˇcx", the range to delete is 2 -> 2 ("c"), so
`new_point == point` and the function incorrectly returns `None` and "c"
is not deleted
- We need to disambiguate between the "not found" case and the "found
immediately to the right" case
- This bug does not apply to the backwards case ("dTx")

Release Notes:
- Fixed "dtx" vim key combination when "x" is immediately to the right
of the cursor (#4358)
2024-01-28 19:46:14 -07:00
..
case.rs Update name of function to match other implementation 2024-01-28 15:20:50 -05:00
change.rs Merge branch 'main' into language-api-docs 2024-01-18 15:06:45 -08:00
delete.rs vim: fix dtx when x is immediately to the right 2024-01-26 16:58:48 -08:00
increment.rs Editor docs (#4097) 2024-01-18 00:48:37 +01:00
paste.rs Editor docs (#4097) 2024-01-18 00:48:37 +01:00
repeat.rs Lock down test platform implementation 2024-01-20 15:03:36 -08:00
scroll.rs Editor docs (#4097) 2024-01-18 00:48:37 +01:00
search.rs When searching in visual mode switch to normal mode 2024-01-20 16:33:07 +01:00
substitute.rs Remove 2 suffix for vim, diagnostics, go_to_line, theme_selector, command_palette, file_finder 2024-01-03 10:42:49 -08:00
yank.rs Refactor TextLayoutDetails construction 2023-10-18 22:56:11 -06:00