diff --git a/src/libneochat/chatkeyhelper.cpp b/src/libneochat/chatkeyhelper.cpp index c6756bcfe..c762f2356 100644 --- a/src/libneochat/chatkeyhelper.cpp +++ b/src/libneochat/chatkeyhelper.cpp @@ -206,6 +206,10 @@ bool ChatKeyHelper::backspace() if (cursor.isNull()) { return false; } + if (cursor.blockFormat().headingLevel() > 0 && m_textItem->plainText().length() <= m_textItem->fixedStartChars().length() + 1) { + m_textItem->mergeFormatOnCursor(RichFormat::Paragraph); + return false; + } if (cursor.position() <= m_textItem->fixedStartChars().length()) { if (cursor.currentList() && m_textItem->canIndentListLessAtCursor()) { m_textItem->indentListLessAtCursor();