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
04b0fdea
Commit
04b0fdea
authored
Dec 17, 2013
by
Dominik Haumann
Browse files
do not word wrap when removing trailing spaces
Thanks to Gerald for the detailed report! FIXED-IN: 4.11.5
BUG: 328900
parent
30b18420
Changes
1
Hide whitespace changes
Inline
Side-by-side
part/document/katedocument.cpp
View file @
04b0fdea
...
...
@@ -4416,6 +4416,10 @@ void KateDocument::removeTrailingSpaces()
if
(
remove
==
0
)
return
;
// temporarily disable static word wrap (see bug #328900)
const
bool
wordWrapEnabled
=
config
()
->
wordWrap
();
if
(
wordWrapEnabled
)
setWordWrap
(
false
);
// get cursor position of active view
KTextEditor
::
Cursor
curPos
=
KTextEditor
::
Cursor
::
invalid
();
if
(
activeView
())
{
...
...
@@ -4446,6 +4450,9 @@ void KateDocument::removeTrailingSpaces()
}
editEnd
();
// enable word wrap again, if it was enabled (see bug #328900)
if
(
wordWrapEnabled
)
setWordWrap
(
true
);
// see begin of this function
}
...
...
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