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` | | ---------- | ---------- | ---------- | |  |  |  | Release Notes: - vim: Preserve trailing whitespace in inner text object selections --------- Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
{"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 "}}
|
||||
Reference in New Issue
Block a user