Skip to content

Commit

Permalink
Disable rich text in search field (fix #2752)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Jul 14, 2022
1 parent aeecbc7 commit f3c8921
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/src/ui/text-edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ TextEdit::TextEdit(Profile *profile, QWidget *parent)
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
setFixedHeight(sizeHint().height());
setContextMenuPolicy(Qt::CustomContextMenu);
setAcceptRichText(false);
connect(this, &QTextEdit::customContextMenuRequested, this, &TextEdit::openCustomContextMenu);
new SearchSyntaxHighlighter(true, document(), m_profile);
}
Expand Down

0 comments on commit f3c8921

Please sign in to comment.