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.
abb58c41dbConrad Irwin committed on 6/30/2023, 5:31:22 AMparent9ee2707
4 files changedLine totals unavailable