diff options
| author | nyamatongwe <unknown> | 2003-03-22 10:13:36 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2003-03-22 10:13:36 +0000 | 
| commit | 15b64660b6a2bf8033a992901f8e6a7edbdf9570 (patch) | |
| tree | 64a67ed96d05af204f3cc390ccc37d70e2908e09 | |
| parent | 94cfff4709d753b520921fdcafe9fb9cd78cdf69 (diff) | |
| download | scintilla-mirror-15b64660b6a2bf8033a992901f8e6a7edbdf9570.tar.gz | |
Moved invalidation code around a bit to try to optimize on GTK+ 2.x.
| -rw-r--r-- | src/Editor.cxx | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 07db2404f..ae096d50f 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -901,9 +901,9 @@ int Editor::MovePositionTo(int newPos, bool extend, bool ensureVisible) {  	} else {  		SetEmptySelection(newPos);  	} +	ShowCaretAtCurrentPosition();  	if (ensureVisible)  		EnsureCaretVisible(); -	ShowCaretAtCurrentPosition();  	NotifyMove(newPos);  	return 0;  } @@ -1149,9 +1149,9 @@ void Editor::EnsureCaretVisible(bool useMargin, bool vert, bool horiz) {  		}  		newTopLine = Platform::Clamp(newTopLine, 0, MaxScrollPos());  		if (newTopLine != topLine) { +			Redraw();  			SetTopLine(newTopLine);  			SetVerticalScrollPos(); -			Redraw();  		}  	}  | 
