From ed0aed7dc463ee5c0f2b7c0989e231cce2c835b8 Mon Sep 17 00:00:00 2001 From: Martijn Laan Date: Wed, 3 Jul 2024 09:44:24 +1000 Subject: Feature [feature-requests:#1523]. SCI_AUTOCSETSTYLE sets autocompletion font. --- src/ViewStyle.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/ViewStyle.cxx') diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index b22666cf0..f20645251 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -252,6 +252,8 @@ ViewStyle::ViewStyle(size_t stylesSize_) : ctrlCharPadding = 3; // +3 For a blank on front and rounded edge each side lastSegItalicsOffset = 2; + autocStyle = StyleDefault; + localeName = localeNameDefault; } @@ -792,7 +794,8 @@ FontRealised *ViewStyle::Find(const FontSpecification &fs) { void ViewStyle::FindMaxAscentDescent() noexcept { for (size_t i = 0; i < styles.size(); i++) { - if (i == StyleCallTip) + if (i == StyleCallTip || + (autocStyle != StyleDefault && i == static_cast(autocStyle))) continue; const auto &style = styles[i]; -- cgit v1.2.3