From b44276b2e5b823e254b6dfe06ca19ba45c64c223 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 2 Aug 2002 04:26:31 +0000 Subject: Made Ctrl+Up and Ctrl+Down not flicker when using strict caret policy. Avoided by not calling EnsureCaretVisible for these keys. --- src/Editor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Editor.h') diff --git a/src/Editor.h b/src/Editor.h index 451f12341..5c838ebce 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -322,14 +322,14 @@ protected: // ScintillaBase subclass needs access to much of Editor void SetSelection(int currentPos_); void SetEmptySelection(int currentPos_); int MovePositionOutsideChar(int pos, int moveDir, bool checkLineEnd=true); - int MovePositionTo(int newPos, bool extend = false); + int MovePositionTo(int newPos, bool extend=false, bool ensureVisible=true); int MovePositionSoVisible(int pos, int moveDir); void SetLastXChosen(); void ScrollTo(int line); virtual void ScrollText(int linesToMove); void HorizontalScrollTo(int xPos); - void MoveCaretInsideView(); + void MoveCaretInsideView(bool ensureVisible=true); int DisplayFromPosition(int pos); void EnsureCaretVisible(bool useMargin=true, bool vert=true, bool horiz=true); void ShowCaretAtCurrentPosition(); -- cgit v1.2.3