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:
parent
1ea52bd838
commit
db261ff93f
|
@ -666,14 +666,15 @@ static void doTab(Code* code, bool shift, bool crtl)
|
||||||
}
|
}
|
||||||
|
|
||||||
if(changed) {
|
if(changed) {
|
||||||
history(code);
|
|
||||||
parseSyntaxColor(code);
|
|
||||||
|
|
||||||
if(has_selection) {
|
if(has_selection) {
|
||||||
code->cursor.position = start;
|
code->cursor.position = start;
|
||||||
code->cursor.selection = end;
|
code->cursor.selection = end;
|
||||||
}
|
}
|
||||||
else if (start <= end) code->cursor.position = end;
|
else if (start <= end) code->cursor.position = end;
|
||||||
|
|
||||||
|
history(code);
|
||||||
|
parseSyntaxColor(code);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else inputSymbolBase(code, '\t');
|
else inputSymbolBase(code, '\t');
|
||||||
|
|
Loading…
Reference in New Issue