aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx4
-rw-r--r--src/LexVB.cxx3
2 files changed, 6 insertions, 1 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();
diff --git a/src/LexVB.cxx b/src/LexVB.cxx
index cdda470b5..b5b3bf9ab 100644
--- a/src/LexVB.cxx
+++ b/src/LexVB.cxx
@@ -26,7 +26,8 @@ static int classifyWordVB(unsigned int start, unsigned int end, WordList &keywor
bool wordIsNumber = isdigit(styler[start]) || (styler[start] == '.') ||
(styler[start] == '&' && tolower(styler[start+1]) == 'h');
#endif /* OLD PL 2000/05/18 */
- for (unsigned int i = 0; i < end - start + 1 && i < 30; i++) {
+ unsigned int i;
+ for (i = 0; i < end - start + 1 && i < 30; i++) {
s[i] = static_cast<char>(tolower(styler[start + i]));
#ifdef OLD /* PL 2000/05/18 -- Little optimization */
s[i + 1] = '\0';