-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Treat leading and trailing modifier on empty content range as a token
- Loading branch information
Andreas Arvidsson
committed
Jul 6, 2022
1 parent
d9fa044
commit 9fc6923
Showing
3 changed files
with
70 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/test/suite/fixtures/recorded/selectionTypes/clearLeading.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
languageId: plaintext | ||
command: | ||
spokenForm: clear leading | ||
version: 2 | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- {type: leading} | ||
usePrePhraseSnapshot: true | ||
action: {name: clearAndSetSelection} | ||
initialState: | ||
documentContents: aaa bbb ccc | ||
selections: | ||
- anchor: {line: 0, character: 6} | ||
active: {line: 0, character: 6} | ||
marks: {} | ||
finalState: | ||
documentContents: aaabbb ccc | ||
selections: | ||
- anchor: {line: 0, character: 3} | ||
active: {line: 0, character: 3} | ||
thatMark: | ||
- anchor: {line: 0, character: 3} | ||
active: {line: 0, character: 3} | ||
fullTargets: [{type: primitive, mark: {type: cursor}, modifiers: [{type: leading}]}] |
25 changes: 25 additions & 0 deletions
25
src/test/suite/fixtures/recorded/selectionTypes/clearTrailing.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
languageId: plaintext | ||
command: | ||
spokenForm: clear trailing | ||
version: 2 | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- {type: trailing} | ||
usePrePhraseSnapshot: true | ||
action: {name: clearAndSetSelection} | ||
initialState: | ||
documentContents: aaa bbb ccc | ||
selections: | ||
- anchor: {line: 0, character: 6} | ||
active: {line: 0, character: 6} | ||
marks: {} | ||
finalState: | ||
documentContents: aaa bbbccc | ||
selections: | ||
- anchor: {line: 0, character: 7} | ||
active: {line: 0, character: 7} | ||
thatMark: | ||
- anchor: {line: 0, character: 7} | ||
active: {line: 0, character: 7} | ||
fullTargets: [{type: primitive, mark: {type: cursor}, modifiers: [{type: trailing}]}] |