Fix % when on the last character of the line
Contributes: zed-industries/community#682
This commit is contained in:
parent
abb58c41db
commit
e36d5f41c8
2 changed files with 65 additions and 2 deletions
17
crates/vim/test_data/test_matching.json
Normal file
17
crates/vim/test_data/test_matching.json
Normal file
|
@ -0,0 +1,17 @@
|
|||
{"Put":{"state":"func ˇ(a string) {\n do(something(with<Types>.and_arrays[0, 2]))\n}"}}
|
||||
{"Key":"%"}
|
||||
{"Get":{"state":"func (a stringˇ) {\n do(something(with<Types>.and_arrays[0, 2]))\n}","mode":"Normal"}}
|
||||
{"Put":{"state":"func (a string) ˇ{\ndo(something(with<Types>.and_arrays[0, 2]))\n}"}}
|
||||
{"Key":"%"}
|
||||
{"Get":{"state":"func (a string) {\ndo(something(with<Types>.and_arrays[0, 2]))\nˇ}","mode":"Normal"}}
|
||||
{"Put":{"state":"ˇ{()}"}}
|
||||
{"Key":"%"}
|
||||
{"Get":{"state":"{()ˇ}","mode":"Normal"}}
|
||||
{"Key":"%"}
|
||||
{"Get":{"state":"ˇ{()}","mode":"Normal"}}
|
||||
{"Put":{"state":"{\n ˇ{()}\n}"}}
|
||||
{"Key":"%"}
|
||||
{"Get":{"state":"{\n {()ˇ}\n}","mode":"Normal"}}
|
||||
{"Put":{"state":"func ˇboop() {\n}"}}
|
||||
{"Key":"%"}
|
||||
{"Get":{"state":"func boop(ˇ) {\n}","mode":"Normal"}}
|
Loading…
Add table
Add a link
Reference in a new issue