From eff8ef7aeb6ff1db3ad02c5855b32d1a50a70b2c Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 17 Jun 2013 16:27:13 +1000 Subject: Fix wrap width so doesn't take account of margin twice. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3