mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-14 21:09:05 +08:00
+ fix: Scintilla missing recalculation of space width (to get correct tab width for indentation)
This commit is contained in:
parent
cc23faddab
commit
cbb622465e
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user