mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-19 18:41:56 +03:00
c093bc8aa8
This is related to #9428 I noticed that doing a search and replace for the beginning of a line `^` results in the trailing line being included in the search. This seems to be because of the way the range is generated for generating matches being the up to the start of the trailing line rather than up to the end of the last line. I added a test and took a stab at fixing it but it is a bit yolo as this is the first time I've seen this codebase.
17 lines
339 B
JSON
17 lines
339 B
JSON
{"Put":{"state":"ˇa\na\na\na\na\na\na\n "}}
|
|
{"Key":":"}
|
|
{"Key":"2"}
|
|
{"Key":","}
|
|
{"Key":"5"}
|
|
{"Key":"s"}
|
|
{"Key":"/"}
|
|
{"Key":"^"}
|
|
{"Key":"/"}
|
|
{"Key":"b"}
|
|
{"Key":"enter"}
|
|
{"Get":{"state":"a\nba\nba\nba\nˇba\na\na\n ","mode":"Normal"}}
|
|
{"Key":"/"}
|
|
{"Key":"a"}
|
|
{"Key":"enter"}
|
|
{"Get":{"state":"a\nba\nba\nba\nbˇa\na\na\n ","mode":"Normal"}}
|