Skip to content

Commit

Permalink
Add test to demonstrate we have the same quirks as vim
Browse files Browse the repository at this point in the history
As pointed out in the PR, this is a semi-naive quote match that behaves
the same as vim. Putting it in a test case to show that this is the
desired behavior.
  • Loading branch information
ascandella committed Jul 20, 2016
1 parent 0195225 commit 28f1c29
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/mode/modeNormal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,14 @@ suite("Mode Normal", () => {
endMode: ModeName.Insert
});

newTest({
title: "Emulates vim's behavior sandwiched between double quoted strings for 'ci\"'",
start: ['"one" |"two"'],
keysPressed: 'ci"',
end: ['"one"|"two"'],
endMode: ModeName.Insert
});

newTest({
title: "will fail when ca\" ahead of quoted string",
start: ['"one" |two'],
Expand Down

0 comments on commit 28f1c29

Please sign in to comment.