diff --git a/src/document/katedocument.cpp b/src/document/katedocument.cpp --- a/src/document/katedocument.cpp +++ b/src/document/katedocument.cpp @@ -1308,6 +1308,12 @@ emit textRemoved(this, KTextEditor::Range(line, col, line, col + len), oldText); + // Unwrap next line if needed + l = kateTextLine(line + 1); + if (l && l->isAutoWrapped()) { + m_buffer->unwrapLine(line + 1); + } + editEnd(); return true;