Skip to content

Commit

Permalink
fix: onEnterRules handling of IndentAction.Indent with appendText
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Jan 26, 2024
1 parent f1f4439 commit ed862d5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ public List<AutoClosingPair> getSurroundingPairs(final IContentType contentType)
} else {
appendText = "";
}
} else if (indentAction == IndentAction.Indent) {
appendText = "\t" + appendText;
}

String indentation = TextUtils.getIndentationAtPosition(document, offset);
Expand Down

0 comments on commit ed862d5

Please sign in to comment.