aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-07-12 07:21:46 +0000
committernyamatongwe <unknown>2000-07-12 07:21:46 +0000
commit7bbf6255aa2b342586841c21efbb571b6b9d27de (patch)
treead2682d1284348952c3f35cb03eb8a1d24ff9f46 /src/Editor.cxx
parentbefcf67e8df6f8b80df05efa8f77ec81fc3ea45b (diff)
downloadscintilla-mirror-7bbf6255aa2b342586841c21efbb571b6b9d27de.tar.gz
Added John's autocompletion changes and fiddled to make autocompletion list
size better.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 29037474e..487a4c4f7 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -116,6 +116,7 @@ Editor::~Editor() {
}
void Editor::Finalise() {
+ CancelModes();
}
void Editor::DropGraphics() {
@@ -1950,6 +1951,10 @@ void Editor::LineTranspose() {
}
}
+void Editor::CancelModes() {
+ SetEmptySelection(currentPos);
+}
+
int Editor::KeyCommand(UINT iMessage) {
Point pt = LocationFromPosition(currentPos);
@@ -2069,7 +2074,7 @@ int Editor::KeyCommand(UINT iMessage) {
break;
case SCI_CANCEL: // Cancel any modes - handled in subclass
// Also unselect text
- SetEmptySelection(currentPos);
+ CancelModes();
break;
case SCI_DELETEBACK:
DelCharBack();