diff --git a/scintilla/src/ViewStyle.cxx b/scintilla/src/ViewStyle.cxx index d190ecf83..9d0ceaed5 100644 --- a/scintilla/src/ViewStyle.cxx +++ b/scintilla/src/ViewStyle.cxx @@ -338,6 +338,9 @@ 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 >>>>>>>>>>>>>>> + spaceWidth = surface.WidthText(styles[STYLE_DEFAULT].font.get(), " "); + // <<<<<<<<<<<<<<< END NON STD SCI PATCH <<<<<<<<<<<<<<< tabWidth = spaceWidth * tabInChars; controlCharWidth = 0.0;