From cc23faddab74124b4396b5c32df547a3b510e579 Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Tue, 11 May 2021 13:57:16 +0200 Subject: [PATCH] + fix: revert to Scintilla std tabwidth calculation on font changes --- scintilla/src/ViewStyle.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scintilla/src/ViewStyle.cxx b/scintilla/src/ViewStyle.cxx index 7d1bdcfa2..d190ecf83 100644 --- a/scintilla/src/ViewStyle.cxx +++ b/scintilla/src/ViewStyle.cxx @@ -338,10 +338,7 @@ void ViewStyle::Refresh(Surface &surface, int tabInChars) { someStylesForceCase = std::any_of(styles.cbegin(), styles.cend(), [](const Style &style) noexcept { return style.caseForce != Style::CaseForce::mixed; }); - // >>>>>>>>>>>>>>> BEG NON STD SCI PATCH >>>>>>>>>>>>>>> - //~tabWidth = spaceWidth * tabInChars; - tabWidth = aveCharWidth * tabInChars; - // <<<<<<<<<<<<<<< END NON STD SCI PATCH <<<<<<<<<<<<<<< + tabWidth = spaceWidth * tabInChars; controlCharWidth = 0.0; if (controlCharSymbol >= 32) {