From 13ddc1a339a50bbab9fd5dbbf9300d52ab59fc47 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Sat, 24 Dec 2022 17:46:04 +0100 Subject: [PATCH] Fix changing INI styles not working regression Fix #12696 --- PowerEditor/src/ScintillaComponent/ScintillaEditView.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/ScintillaComponent/ScintillaEditView.h b/PowerEditor/src/ScintillaComponent/ScintillaEditView.h index fb849f619..fd13850ac 100644 --- a/PowerEditor/src/ScintillaComponent/ScintillaEditView.h +++ b/PowerEditor/src/ScintillaComponent/ScintillaEditView.h @@ -673,8 +673,8 @@ protected: setLexer(L_MAKEFILE, LIST_NONE); }; - void setPropsLexer(bool notPropsButIni = false) { - LangType L_id = notPropsButIni ? L_INI : L_PROPS; + void setPropsLexer(bool isPropsButNotIni = true) { + LangType L_id = isPropsButNotIni ? L_PROPS : L_INI; setLexer(L_id, LIST_NONE); execute(SCI_STYLESETEOLFILLED, SCE_PROPS_SECTION, true); };