diff options
author | Martijn Laan <unknown> | 2024-07-03 09:44:24 +1000 |
---|---|---|
committer | Martijn Laan <unknown> | 2024-07-03 09:44:24 +1000 |
commit | ed0aed7dc463ee5c0f2b7c0989e231cce2c835b8 (patch) | |
tree | 8126eeae8b3bee2a00b9a2df89a23c4f2763cb4f /src/ViewStyle.cxx | |
parent | 2b69fbaf70f6a05269d96b2703acfe49ef7f03a1 (diff) | |
download | scintilla-mirror-ed0aed7dc463ee5c0f2b7c0989e231cce2c835b8.tar.gz |
Feature [feature-requests:#1523]. SCI_AUTOCSETSTYLE sets autocompletion font.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r-- | src/ViewStyle.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
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<size_t>(autocStyle))) continue; const auto &style = styles[i]; |