diff options
| author | mitchell <unknown> | 2020-01-05 17:10:23 -0500 |
|---|---|---|
| committer | mitchell <unknown> | 2020-01-05 17:10:23 -0500 |
| commit | ca79b65eea2653ecbf62eb0f1d0caf4ff6dea601 (patch) | |
| tree | a2469638126f8a958ad6e86b6ee6b2b7eedaf036 /src | |
| parent | 51c270affe753fcfae24887ee940e8061c631d7d (diff) | |
| download | scintilla-mirror-ca79b65eea2653ecbf62eb0f1d0caf4ff6dea601.tar.gz | |
Synchronizing LongTerm3 with default.
Ideally this covers anything missed during the backport process.
Diffstat (limited to 'src')
| -rw-r--r-- | src/EditModel.cxx | 1 | ||||
| -rw-r--r-- | src/EditView.cxx | 3 | ||||
| -rw-r--r-- | src/ScintillaBase.cxx | 10 | ||||
| -rw-r--r-- | src/Style.h | 1 |
4 files changed, 12 insertions, 3 deletions
diff --git a/src/EditModel.cxx b/src/EditModel.cxx index 99520f3cb..591d2c623 100644 --- a/src/EditModel.cxx +++ b/src/EditModel.cxx @@ -94,4 +94,3 @@ const char *EditModel::GetFoldDisplayText(Sci::Line lineDoc) const { const char *text = pcs->GetFoldDisplayText(lineDoc); return text ? text : defaultFoldDisplayText.get(); } - diff --git a/src/EditView.cxx b/src/EditView.cxx index 6850d0964..c16f25ac6 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -59,7 +59,7 @@ using namespace Scintilla; -static inline bool IsControlCharacter(int ch) { +static constexpr bool IsControlCharacter(int ch) noexcept { // iscntrl returns true for lots of chars > 127 which are displayable return ch >= 0 && ch < ' '; } @@ -1563,6 +1563,7 @@ static void DrawMarkUnderline(Surface *surface, const EditModel &model, const Vi marks >>= 1; } } + static void DrawTranslucentSelection(Surface *surface, const EditModel &model, const ViewStyle &vsDraw, const LineLayout *ll, Sci::Line line, PRectangle rcLine, int subLine, Range lineRange, int xStart) { if ((vsDraw.selAlpha != SC_ALPHA_NOALPHA) || (vsDraw.selAdditionalAlpha != SC_ALPHA_NOALPHA)) { diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 0b7adbd67..b538fee2e 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -675,7 +675,15 @@ void LexState::SetWordList(int n, const char *wl) { } const char *LexState::GetName() const { - return lexCurrent ? lexCurrent->languageName : ""; + if (lexCurrent) { + return lexCurrent->languageName; + } + if (instance) { + if (instance->Version() >= lvIdentity) { + return static_cast<ILexerWithIdentity *>(instance)->GetName(); + } + } + return ""; } void *LexState::PrivateCall(int operation, void *pointer) { diff --git a/src/Style.h b/src/Style.h index 1f7f02fe6..956a55b65 100644 --- a/src/Style.h +++ b/src/Style.h @@ -72,6 +72,7 @@ public: Style(); Style(const Style &source); + // Style objects should not be moved but MSVC 2015 requires this. Style(Style &&) = default; ~Style(); Style &operator=(const Style &source); |
