Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
682fa5ac
Commit
682fa5ac
authored
Jul 17, 2011
by
Dominik Haumann
Browse files
prevent word wrap from breaking comments
CCBUG: 105373
parent
b04e05c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
part/document/katedocument.cpp
View file @
682fa5ac
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment