aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
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();