diff --git a/PowerEditor/scintilla.original.forUpdating/lexilla516.zip b/PowerEditor/scintilla.original.forUpdating/lexilla517.zip similarity index 73% rename from PowerEditor/scintilla.original.forUpdating/lexilla516.zip rename to PowerEditor/scintilla.original.forUpdating/lexilla517.zip index cf96f8a64..c6499850b 100644 Binary files a/PowerEditor/scintilla.original.forUpdating/lexilla516.zip and b/PowerEditor/scintilla.original.forUpdating/lexilla517.zip differ diff --git a/PowerEditor/scintilla.original.forUpdating/scintilla522.zip b/PowerEditor/scintilla.original.forUpdating/scintilla523.zip similarity index 56% rename from PowerEditor/scintilla.original.forUpdating/scintilla522.zip rename to PowerEditor/scintilla.original.forUpdating/scintilla523.zip index 50e5cc371..33a7bf3bc 100644 Binary files a/PowerEditor/scintilla.original.forUpdating/scintilla522.zip and b/PowerEditor/scintilla.original.forUpdating/scintilla523.zip differ diff --git a/PowerEditor/src/ScintillaComponent/Printer.cpp b/PowerEditor/src/ScintillaComponent/Printer.cpp index a3a9b61bf..c82c4b3b0 100644 --- a/PowerEditor/src/ScintillaComponent/Printer.cpp +++ b/PowerEditor/src/ScintillaComponent/Printer.cpp @@ -404,9 +404,9 @@ size_t Printer::doPrint(bool justDoIt) } } - frPrint.chrg.cpMin = static_cast(lengthPrinted); - frPrint.chrg.cpMax = static_cast(lengthDoc); - lengthPrinted = _pSEView->execute(SCI_FORMATRANGE, printPage, reinterpret_cast(&frPrint)); + frPrint.chrg.cpMin = static_cast(lengthPrinted); + frPrint.chrg.cpMax = static_cast(lengthDoc); + lengthPrinted = _pSEView->execute(SCI_FORMATRANGEFULL, printPage, reinterpret_cast(&frPrint)); if (printPage) { @@ -481,7 +481,7 @@ size_t Printer::doPrint(bool justDoIt) if (!nppGUI._printSettings._printLineNumber) _pSEView->showMargin(ScintillaEditView::_SC_MARGE_LINENUMBER, isShown); - _pSEView->execute(SCI_FORMATRANGE, FALSE, 0); + _pSEView->execute(SCI_FORMATRANGEFULL, FALSE, 0); ::EndDoc(_pdlg.hDC); ::DeleteDC(_pdlg.hDC); diff --git a/PowerEditor/src/ScintillaComponent/Printer.h b/PowerEditor/src/ScintillaComponent/Printer.h index 6ea2ccb60..72614acd2 100644 --- a/PowerEditor/src/ScintillaComponent/Printer.h +++ b/PowerEditor/src/ScintillaComponent/Printer.h @@ -25,7 +25,7 @@ struct NPP_RangeToFormat { HDC hdcTarget = nullptr; RECT rc = {}; RECT rcPage = {}; - Sci_CharacterRange chrg = {}; + Sci_CharacterRangeFull chrg = {}; }; class Printer diff --git a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp index bcad555ba..0e917f5cc 100644 --- a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp +++ b/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp @@ -2253,11 +2253,11 @@ void ScintillaEditView::foldAll(bool mode) void ScintillaEditView::getText(char *dest, size_t start, size_t end) const { - Sci_TextRange tr; - tr.chrg.cpMin = static_cast(start); - tr.chrg.cpMax = static_cast(end); + Sci_TextRangeFull tr{}; + tr.chrg.cpMin = static_cast(start); + tr.chrg.cpMax = static_cast(end); tr.lpstrText = dest; - execute(SCI_GETTEXTRANGE, 0, reinterpret_cast(&tr)); + execute(SCI_GETTEXTRANGEFULL, 0, reinterpret_cast(&tr)); } generic_string ScintillaEditView::getGenericTextAsString(size_t start, size_t end) const diff --git a/PowerEditor/src/ScintillaComponent/xmlMatchedTagsHighlighter.cpp b/PowerEditor/src/ScintillaComponent/xmlMatchedTagsHighlighter.cpp index 6483121ea..63049a8d9 100644 --- a/PowerEditor/src/ScintillaComponent/xmlMatchedTagsHighlighter.cpp +++ b/PowerEditor/src/ScintillaComponent/xmlMatchedTagsHighlighter.cpp @@ -564,11 +564,11 @@ XmlMatchedTagsHighlighter::FindResult XmlMatchedTagsHighlighter::findText(const { FindResult returnValue; - Sci_TextToFind search; + Sci_TextToFindFull search{}; search.lpstrText = const_cast(text); // Grrrrrr - search.chrg.cpMin = static_cast(start); - search.chrg.cpMax = static_cast(end); - intptr_t result = _pEditView->execute(SCI_FINDTEXT, flags, reinterpret_cast(&search)); + search.chrg.cpMin = static_cast(start); + search.chrg.cpMax = static_cast(end); + intptr_t result = _pEditView->execute(SCI_FINDTEXTFULL, flags, reinterpret_cast(&search)); if (-1 == result) { returnValue.success = false; diff --git a/appveyor.yml b/appveyor.yml index 90685b341..0b17b1582 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 8.2.{build} +version: 8.4.{build} image: Visual Studio 2019 #skip_commits: diff --git a/lexilla/.gitattributes b/lexilla/.gitattributes index 4b459fc31..5e4477bf4 100644 --- a/lexilla/.gitattributes +++ b/lexilla/.gitattributes @@ -26,11 +26,13 @@ **.asp text **.php text **.vb text +**.cmake text **.d text **.erl text **.gd text **.iss text **.jl text +**.json text **.lua text **.matlab text **.ml text @@ -45,6 +47,7 @@ **.mms text **.tex text **.fs text +**.vhd text **.x12 text **.yaml text **.md text diff --git a/lexilla/doc/Lexilla.html b/lexilla/doc/Lexilla.html index e6b5fd64d..f5aeb1d71 100644 --- a/lexilla/doc/Lexilla.html +++ b/lexilla/doc/Lexilla.html @@ -9,7 +9,7 @@ - +