Skip to content

Commit

Permalink
fix: Fix cursor anomaly issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Kakueeen committed Sep 2, 2024
1 parent 22af767 commit 3d1fc54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/codeeditor/gui/private/texteditor_p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void TextEditorPrivate::updateSettings()
QFont font(fontName, fontSize, QFont::Normal);
if (q->lexer())
q->lexer()->setDefaultFont(font);
else
else if (!fileName.isEmpty())
q->setFont(font);

int fontZoom = EditorSettings::instance()->value(Node::FontColor, Group::FontGroup, Key::FontZoom, 100).toInt();
Expand Down

0 comments on commit 3d1fc54

Please sign in to comment.