diff options
author | Neil <nyamatongwe@gmail.com> | 2014-02-02 18:09:44 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-02-02 18:09:44 +1100 |
commit | 253bc4cd3a19e93f7090c74af92a871765afe002 (patch) | |
tree | 8c09bb0f872d03ced471ca583408bb0d5eb8ff16 /src/Editor.cxx | |
parent | b6c1e9cab3172739006d3a3763cbf5fd8ee95fe6 (diff) | |
download | scintilla-mirror-253bc4cd3a19e93f7090c74af92a871765afe002.tar.gz |
Added wrap mode SC_WRAP_WHITESPACE which only wraps on whitespace, not on style changes.
From Robert Gieseke.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 6694cbbb3..0f0eed80b 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2400,7 +2400,7 @@ void Editor::LayoutLine(int line, Surface *surface, ViewStyle &vstyle, LineLayou - posLineStart; p = pdoc->MovePositionOutsideChar(p + 1 + posLineStart, 1) - posLineStart; continue; - } else if (ll->styles[p] != ll->styles[p - 1]) { + } else if ((vstyle.wrapState == eWrapWord) && (ll->styles[p] != ll->styles[p - 1])) { lastGoodBreak = p; } else if (IsSpaceOrTab(ll->chars[p - 1]) && !IsSpaceOrTab(ll->chars[p])) { lastGoodBreak = p; |