diff options
author | nyamatongwe <unknown> | 2013-06-17 16:27:13 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-06-17 16:27:13 +1000 |
commit | 93cdd91445de10f9fb5b0cce78d61a8afbf7b7a6 (patch) | |
tree | 2ab1988793802e27b68c0ba632daa024ba5ee5df /src | |
parent | 6520a5c42fe838d85b875d124944f012a8a6e390 (diff) | |
download | scintilla-mirror-93cdd91445de10f9fb5b0cce78d61a8afbf7b7a6.tar.gz |
Fix wrap width so doesn't take account of margin twice.
Diffstat (limited to 'src')
-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 f02fdf0f1..8b25b1fe1 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1623,7 +1623,7 @@ bool Editor::WrapLines(bool fullWrap, int priorityWrapLineStart) { int subLineTop = topLine - cs.DisplayFromDoc(lineDocTop); PRectangle rcTextArea = GetClientRectangle(); rcTextArea.left = vs.textStart; - rcTextArea.right -= vs.textStart; + rcTextArea.right -= vs.rightMarginWidth; wrapWidth = rcTextArea.Width(); RefreshStyleData(); AutoSurface surface(this); |