Skip to content

Commit

Permalink
Do not finish input translation on closing braces.
Browse files Browse the repository at this point in the history
Closes #46.
  • Loading branch information
gebner committed Feb 11, 2020
1 parent 3bf3443 commit 077cb43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ class TextEditorAbbrevHandler {
} else if (change.text === this.leader) {
return this.convertRange(
new Range(change.range.start, change.range.start.translate(0, 1)));
} else if (change.text.match(/^\s+|[)}⟩]$/)) {
// whitespace, closing parens
} else if (change.text.match(/^\s+$/)) {
// whitespace
return this.convertRange();
}
}
Expand Down

0 comments on commit 077cb43

Please sign in to comment.