diff options
author | nyamatongwe <unknown> | 2001-08-08 12:46:31 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-08-08 12:46:31 +0000 |
commit | afc4e5d91a694ed0342feb8bafe1e7af684b3d8e (patch) | |
tree | 70c01c0755288486859ca0ea6fe6d5d12e90e178 | |
parent | d5a2e3789a7a165ae42989cba593061031e44550 (diff) | |
download | scintilla-mirror-afc4e5d91a694ed0342feb8bafe1e7af684b3d8e.tar.gz |
Inverted CARET_XEVEN test as it was tested incorrectly.
-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); |