aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-05-20 23:26:43 +0000
committernyamatongwe <devnull@localhost>2000-05-20 23:26:43 +0000
commitebe3ffb62b60ed9684dbacd86c06734787bf1e40 (patch)
tree2d2ef3fe59d3a6b2cc42299e01941e9bd6f3ce4c /src/Editor.cxx
parentbab9493b7fd1a451f59515d3bd952b733ef8cb74 (diff)
downloadscintilla-mirror-ebe3ffb62b60ed9684dbacd86c06734787bf1e40.tar.gz
Fixed scope of variable.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index ad8bab8c5..25ccf97cd 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -1962,9 +1962,13 @@ int Editor::KeyCommand(UINT iMessage) {
break;
case SCI_TAB:
Indent(true);
+ SetLastXChosen();
+ EnsureCaretVisible();
break;
case SCI_BACKTAB:
Indent(false);
+ SetLastXChosen();
+ EnsureCaretVisible();
break;
case SCI_NEWLINE:
ClearSelection();