diff options
author | nyamatongwe <devnull@localhost> | 2013-06-17 16:27:13 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-06-17 16:27:13 +1000 |
commit | eff8ef7aeb6ff1db3ad02c5855b32d1a50a70b2c (patch) | |
tree | ea1032273af1edce1783b0757d9dea96cb9ec937 /src | |
parent | 3fc9384925ba96aa33073363b407fb4fb08bd9ec (diff) | |
download | scintilla-mirror-eff8ef7aeb6ff1db3ad02c5855b32d1a50a70b2c.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); |