Skip to content

Commit

Permalink
Delay inputfilter addition at document load
Browse files Browse the repository at this point in the history
  • Loading branch information
gsantner committed Nov 28, 2021
1 parent 2f55001 commit 382441c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public Highlighter getHighlighter() {
}

public void enableHighlighterAutoFormat() {
setFilters(new InputFilter[]{_hl.getAutoFormatter()});
postDelayed(() -> {setFilters(new InputFilter[]{_hl.getAutoFormatter()});}, 10);

final TextWatcher modifier = (_hl != null) ? _hl.getTextModifier() : null;
if (modifier != null && !_appliedModifiers.contains(modifier)) {
Expand Down

0 comments on commit 382441c

Please sign in to comment.