+ fix: Scintilla missing recalculation of space width (to get correct tab width for indentation)

This commit is contained in:
Rainer Kottenhoff 2021-05-11 14:19:38 +02:00
parent cc23faddab
commit cbb622465e

View File

@ -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;