From db261ff93fa07a952121878ec699fa85eb3209d7 Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Thu, 28 Dec 2017 22:44:07 +0300 Subject: [PATCH] Add support to crtl or shift to indent/unindent anywhere in the line #485 small fix, because history() saves cursor position too --- src/code.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/code.c b/src/code.c index 5dc0e17..c1bdefe 100644 --- a/src/code.c +++ b/src/code.c @@ -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');