diff options
| -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 b4e192558..880d417d5 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -635,7 +635,7 @@ void Editor::EnsureCaretVisible(bool useMargin, bool vert, bool horiz) {  		int xOffsetNew = xOffset;  		if (pt.x < rcClient.left) {  			xOffsetNew = xOffset - (offsetLeft - pt.x); -		} else if (((caretPolicy & CARET_XEVEN) && ((xOffset > 0) && useMargin)) || pt.x >= rcClient.right) { +		} else if ((!(caretPolicy & CARET_XEVEN) && ((xOffset > 0) && useMargin)) || pt.x >= rcClient.right) {  			xOffsetNew = xOffset + (pt.x - offsetRight);  			int xOffsetEOL = xOffset + (ptEOL.x - offsetRight) - xMargin + 2;  			//Platform::DebugPrintf("Margin %d %d\n", xOffsetNew, xOffsetEOL); | 
