Skip to content

Commit f1f9073

Browse files
committed
Fixed wrong line number when chang text sizze
1 parent 51577ab commit f1f9073

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libeditor/src/main/java/com/duy/ide/editor/view/HighlightEditorView.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,9 @@ public void setTextSize(int unit, float size) {
331331
super.setTextSize(unit, size);
332332
updateLayoutContext();
333333
updateTabChar();
334+
335+
mNeedUpdateLineNumber = true;
336+
mPreLineCount = -1;
334337
}
335338

336339
@Override

0 commit comments

Comments
 (0)