ZIm/crates/vim/src
Lucas Vieira 2ce1a96e6c
vim: Fix ap text object selection when there is line wrapping (#35485)
In Vim mode, `ap` text object (used in `vap`, `dap`, `cap`) was
selecting multiple paragraphs when soft wrap was enabled. The bug was
caused by using DisplayRow coordinates for arithmetic instead of buffer
row coordinates in the paragraph boundary calculation.

Fix by converting to buffer coordinates before arithmetic, then back to
display coordinates for the final result.

Closes #35085

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
2025-08-23 10:39:19 -04:00
..
digraph Add Vim digraphs (#14887) 2024-07-28 22:44:32 -06:00
normal vim: Fix ap text object selection when there is line wrapping (#35485) 2025-08-23 10:39:19 -04:00
test helix: Allow yank without a selection (#35612) 2025-08-23 10:39:14 -04:00
change_list.rs Remove unnecessary argument from Vim#update_editor (#36001) 2025-08-23 10:38:39 -04:00
command.rs editor: Add access method for project (#36266) 2025-08-23 10:39:16 -04:00
digraph.rs Remove unnecessary argument from Vim#update_editor (#36001) 2025-08-23 10:38:39 -04:00
helix.rs helix: Change f and t motions (#35216) 2025-08-23 10:39:14 -04:00
indent.rs Remove unnecessary argument from Vim#update_editor (#36001) 2025-08-23 10:38:39 -04:00
insert.rs vim: Add ctrl-y/e in insert mode (#36017) 2025-08-23 10:38:39 -04:00
mode_indicator.rs Remove some redundant entity clones (#36274) 2025-08-23 10:39:16 -04:00
motion.rs helix: Change f and t motions (#35216) 2025-08-23 10:39:14 -04:00
normal.rs Remove unnecessary argument from Vim#update_editor (#36001) 2025-08-23 10:38:39 -04:00
object.rs vim: Fix ap text object selection when there is line wrapping (#35485) 2025-08-23 10:39:19 -04:00
replace.rs Remove unnecessary argument from Vim#update_editor (#36001) 2025-08-23 10:38:39 -04:00
rewrap.rs Remove unnecessary argument from Vim#update_editor (#36001) 2025-08-23 10:38:39 -04:00
state.rs vim: Display invisibles in mode indicator (#35760) 2025-08-23 10:39:19 -04:00
surrounds.rs Remove unnecessary argument from Vim#update_editor (#36001) 2025-08-23 10:38:39 -04:00
test.rs lsp: Wait for shutdown response before sending exit notification (#33417) 2025-07-15 18:30:57 +03:00
vim.rs Remove some redundant entity clones (#36274) 2025-08-23 10:39:16 -04:00
visual.rs vim: Fix ap text object selection when there is line wrapping (#35485) 2025-08-23 10:39:19 -04:00