From 13e53e36ed34e995d7ac204a1d4248029ce79fc2 Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Wed, 10 Jan 2018 19:26:04 +0100 Subject: [PATCH] + fix: disable (using 1st Default Style) "Associated filename extensions" for "2nd Default Style" --- src/Styles.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Styles.c b/src/Styles.c index 17eb1fdfe..28dcfc3c4 100644 --- a/src/Styles.c +++ b/src/Styles.c @@ -5558,10 +5558,14 @@ INT_PTR CALLBACK Style_ConfigDlgProc(HWND hwnd,UINT umsg,WPARAM wParam,LPARAM lP { pCurrentStyle = &(pCurrentLexer->Styles[STY_DEFAULT]); - if (pCurrentStyle->rid == 63100) + if (pCurrentStyle->rid == 63100) { StringCchCopyW(label, COUNTOF(label), L"BASE (Default Style):"); - else + } + else { StringCchCopyW(label, COUNTOF(label), L"BASE (2nd Default Style):"); + SetDlgItemText(hwnd, IDC_STYLEEDIT_ROOT, lexStandard.szExtensions); + DialogEnableWindow(hwnd, IDC_STYLEEDIT_ROOT, FALSE); + } } else { pCurrentStyle = &(pCurrentLexer->Styles[STY_DEFAULT]);