From c4aaeeedac747eef1a3305782444e1572ce3a296 Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Thu, 13 May 2021 15:37:19 +0200 Subject: [PATCH] + fix: go to doc begin after global indentation change --- src/Notepad3.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Notepad3.c b/src/Notepad3.c index ed84b1cb7..e02fdcbea 100644 --- a/src/Notepad3.c +++ b/src/Notepad3.c @@ -9746,18 +9746,17 @@ bool ConsistentIndentationCheck(EditFileIOStatus* status) bool const backSpcUnindents = SciCall_GetBackSpaceUnIndents(); SciCall_SetBackSpaceUnIndents(true); - DocPos const iCurPos = SciCall_GetCurrentPos(); - UndoTransActionBegin(); EditIndentBlock(Globals.hwndEdit, SCI_TAB, true, true); EditIndentBlock(Globals.hwndEdit, SCI_BACKTAB, true, true); EndUndoTransAction(); - Sci_GotoPosChooseCaret(iCurPos); - SciCall_SetUseTabs(useTabs); SciCall_SetTabIndents(tabIndents); SciCall_SetBackSpaceUnIndents(backSpcUnindents); + + Sci_GotoPosChooseCaret(0); + } else { status->iGlobalIndent = I_MIX_LN; return false;