When completing treat all text as plain so don't upgrade to markdown.

This commit is contained in:
James Graham
2026-02-27 13:06:26 +00:00
parent 4c1301da51
commit c07db82552

View File

@@ -188,7 +188,7 @@ void ChatMarkdownHelper::checkMarkdown(int position, int charsRemoved, int chars
// This can happen when formatting is applied.
if (charsAdded == charsRemoved) {
return;
} else if (charsRemoved > charsAdded || charsAdded - charsRemoved > 1) {
} else if (m_textItem->isCompleting || charsRemoved > charsAdded || charsAdded - charsRemoved > 1) {
updatePosition(std::max(0, position - charsRemoved + charsAdded));
return;
}