mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-28 21:02:59 +08:00
+ fix: revert to Scintilla std tabwidth calculation on font changes
This commit is contained in:
parent
3b3008f1e0
commit
cc23faddab
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user