vim: Fix edge-case in } when trailing newline is absent
Added .assert_shared_state() to NeovimBackedTestContext – although it's not strictly necessary to show the expected behaviour in the test file (as we can just compare to neovim's JSON recording), it makes it much easier to understand what we're testing.
This commit is contained in:
parent
9ee2707d43
commit
abb58c41db
4 changed files with 94 additions and 48 deletions
13
crates/vim/test_data/test_start_end_of_paragraph.json
Normal file
13
crates/vim/test_data/test_start_end_of_paragraph.json
Normal file
|
@ -0,0 +1,13 @@
|
|||
{"Put":{"state":"ˇabc\ndef\n\nparagraph\nthe second\n\n\n\nthird and\nfinal"}}
|
||||
{"Key":"}"}
|
||||
{"Get":{"state":"abc\ndef\nˇ\nparagraph\nthe second\n\n\n\nthird and\nfinal","mode":"Normal"}}
|
||||
{"Key":"{"}
|
||||
{"Get":{"state":"ˇabc\ndef\n\nparagraph\nthe second\n\n\n\nthird and\nfinal","mode":"Normal"}}
|
||||
{"Key":"2"}
|
||||
{"Key":"}"}
|
||||
{"Get":{"state":"abc\ndef\n\nparagraph\nthe second\nˇ\n\n\nthird and\nfinal","mode":"Normal"}}
|
||||
{"Key":"}"}
|
||||
{"Get":{"state":"abc\ndef\n\nparagraph\nthe second\n\n\n\nthird and\nfinaˇl","mode":"Normal"}}
|
||||
{"Key":"2"}
|
||||
{"Key":"{"}
|
||||
{"Get":{"state":"abc\ndef\nˇ\nparagraph\nthe second\n\n\n\nthird and\nfinal","mode":"Normal"}}
|
Loading…
Add table
Add a link
Reference in a new issue