aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-06-22 14:01:20 +0000
committernyamatongwe <unknown>2000-06-22 14:01:20 +0000
commitfadf99e46d9b6e4bda9bfae1f6ab3b40ef907d9f (patch)
tree5035413c581ec5d70b938f0e0b3227b657837b29
parent939886fbd57448673355a48d615eb28f6c4a7559 (diff)
downloadscintilla-mirror-fadf99e46d9b6e4bda9bfae1f6ab3b40ef907d9f.tar.gz
Caret stability when adding or deleting characters.
Caret redisplayed when focus in on GTK+. Fixed whitespace visible after indentation option.
-rw-r--r--gtk/ScintillaGTK.cxx1
-rw-r--r--src/Editor.cxx6
-rw-r--r--win32/ScintillaWin.cxx3
3 files changed, 7 insertions, 3 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index bece77e59..d14bc57ac 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -157,6 +157,7 @@ gint ScintillaGTK::FocusIn(GtkWidget *widget, GdkEventFocus * /*event*/, Scintil
GTK_WIDGET_SET_FLAGS(widget, GTK_HAS_FOCUS);
sciThis->NotifyFocus(true);
sciThis->ShowCaretAtCurrentPosition();
+ sciThis->InvalidateCaret();
return FALSE;
}
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 14dbb87df..abfa947f0 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -1404,6 +1404,8 @@ void Editor::AddCharUTF(char *s, unsigned int len) {
pdoc->InsertString(currentPos, s, len);
SetEmptySelection(currentPos + len);
EnsureCaretVisible();
+ // Avoid blinking during rapid typing:
+ ShowCaretAtCurrentPosition();
SetLastXChosen();
NotifyChar(s[0]);
}
@@ -1510,6 +1512,8 @@ void Editor::Redo() {
void Editor::DelChar() {
pdoc->DelChar(currentPos);
+ // Avoid blinking during rapid typing:
+ ShowCaretAtCurrentPosition();
}
void Editor::DelCharBack() {
@@ -1520,6 +1524,8 @@ void Editor::DelCharBack() {
ClearSelection();
SetEmptySelection(currentPos);
}
+ // Avoid blinking during rapid typing:
+ ShowCaretAtCurrentPosition();
}
void Editor::NotifyFocus(bool) {
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 140d0de87..b823ebd05 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -259,9 +259,6 @@ static int InputCodePage() {
return atoi(sCodePage);
}
-//#undef DefWindowProc
-//#define DefWindowProc DefWindowProcW
-
LRESULT ScintillaWin::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) {
switch (iMessage) {