Add support to crtl or shift to indent/unindent anywhere in the line #485

small fix, because history() saves cursor position too
This commit is contained in:
BADIM-PC\Vadim 2017-12-28 22:44:07 +03:00
parent 1ea52bd838
commit db261ff93f
1 changed files with 3 additions and 2 deletions

View File

@ -666,14 +666,15 @@ static void doTab(Code* code, bool shift, bool crtl)
}
if(changed) {
history(code);
parseSyntaxColor(code);
if(has_selection) {
code->cursor.position = start;
code->cursor.selection = end;
}
else if (start <= end) code->cursor.position = end;
history(code);
parseSyntaxColor(code);
}
}
else inputSymbolBase(code, '\t');