Commit 682fa5ac authored by Dominik Haumann's avatar Dominik Haumann
Browse files

prevent word wrap from breaking comments

CCBUG: 105373
parent b04e05c0
......@@ -3306,6 +3306,10 @@ bool KateDocument::removeStartLineCommentFromSelection( KateView *view, int attr
*/
void KateDocument::comment( KateView *v, uint line,uint column, int change)
{
// skip word wrap bug #105373
const bool skipWordWrap = wordWrap();
if (skipWordWrap) setWordWrap(false);
bool hassel = v->selection();
int l = line;
int c = 0;
......@@ -3398,6 +3402,8 @@ void KateDocument::comment( KateView *v, uint line,uint column, int change)
if (!removed && change == 0)
comment(v, line, column, 1);
}
if (skipWordWrap) setWordWrap(true); // see begin of function ::comment (bug #105373)
}
void KateDocument::transform( KateView *v, const KTextEditor::Cursor &c,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment