aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-08-08 12:46:31 +0000
committernyamatongwe <devnull@localhost>2001-08-08 12:46:31 +0000
commitb887eca7bf954931b0f65c8ef0291f9292754be7 (patch)
tree70c01c0755288486859ca0ea6fe6d5d12e90e178 /src
parenta02c8bbb552891661a4987c0488010cde91c0cd3 (diff)
downloadscintilla-mirror-b887eca7bf954931b0f65c8ef0291f9292754be7.tar.gz
Inverted CARET_XEVEN test as it was tested incorrectly.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx2
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);