ZIm/crates/vim/test_data/test_delete_paragraph_whitespace.json
Lucas Vieira 768b2de368
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-18 09:57:53 -06:00

5 lines
146 B
JSON

{"Put":{"state":"a\n ˇ•\naaaaaaaaaaaaa\n"}}
{"Key":"d"}
{"Key":"i"}
{"Key":"p"}
{"Get":{"state":"a\naaaaaaaˇaaaaaa\n","mode":"Normal"}}