ZIm/crates/vim/test_data/test_anybrackets_trailing_space.json
5brian 7bddb390ca
vim: Preserve trailing whitespace in inner text object selections (#24481)
Closes #24438

Changes: Adjusted loop to only trim whitespace between last newline and
closing marker, when using inner objects like `y/d/c i b`

| Start   | Fixed `vib`   | Previous `vib`   |
| ---------- | ---------- | ---------- |
|
![image](https://github.com/user-attachments/assets/3d64dd7d-ed3d-4a85-9f98-f2f83799a738)
|
![image](https://github.com/user-attachments/assets/841beb59-31b1-475e-93f0-f4deaf18939c)
|
![image](https://github.com/user-attachments/assets/736d4c6f-20e1-4563-9471-1e8195455df4)
|



Release Notes:

- vim: Preserve trailing whitespace in inner text object selections

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
2025-02-08 02:50:34 +00:00

11 lines
358 B
JSON

{"Put":{"state":"(trailingˇ whitespace )"}}
{"Key":"v"}
{"Key":"i"}
{"Key":"b"}
{"Get":{"state":"(«trailing whitespace ˇ»)","mode":"Visual"}}
{"Key":"escape"}
{"Key":"y"}
{"Key":"i"}
{"Key":"b"}
{"Get":{"state":"(ˇtrailing whitespace )","mode":"Normal"}}
{"ReadRegister":{"name":"\"","value":"trailing whitespace "}}