Skip to content

Commit

Permalink
Merge pull request Rosemoe#609 from StarkZhidian/main
Browse files Browse the repository at this point in the history
--bugfix=TextMateSymbolPairMatch.SymbolPairEx.shouldReplace
  • Loading branch information
Rosemoe authored Aug 21, 2024
2 parents e292c46 + ec85ede commit d37c1fd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ public boolean shouldReplace(CodeEditor editor, ContentLine contentLine, int lef
if (editor.getCursor().isSelected()) {
return isSurroundingPair;
}
// No text was selected,so should not complete surrounding pair
if (isSurroundingPair) {
return false;
}

if (notInTokenTypeArray == null) {
return true;
Expand Down

0 comments on commit d37c1fd

Please sign in to comment.