Attempt to fix link-formatting.

This commit is contained in:
John Preston 2024-05-27 15:01:51 +04:00
parent 951ccf4bb0
commit f1d0a67d41

View file

@ -3630,9 +3630,11 @@ void InputField::commitMarkdownLinkEdit(
_insertedTags.clear(); _insertedTags.clear();
_reverseMarkdownReplacement = false; _reverseMarkdownReplacement = false;
_correcting = true;
cursor.setCharFormat(_defaultCharFormat); cursor.setCharFormat(_defaultCharFormat);
cursor.setBlockFormat(_defaultBlockFormat); cursor.setBlockFormat(_defaultBlockFormat);
_inner->setTextCursor(cursor); _inner->setTextCursor(cursor);
_correcting = false;
} }
void InputField::toggleSelectionMarkdown(const QString &tag) { void InputField::toggleSelectionMarkdown(const QString &tag) {