diff --git a/PowerEditor/bin/change.log b/PowerEditor/bin/change.log
index bfa3126a..861b484d 100644
--- a/PowerEditor/bin/change.log
+++ b/PowerEditor/bin/change.log
@@ -1,18 +1,24 @@
-Notepad++ v5.7 new features and fixed bugs (from v5.6.8) :
+Notepad++ v5.7.1 new features and fixed bugs (from v5.7) :
+
+1. Upgrade Scintilla to version 2.20.
+2. Fix Unicode file corrupted on saving bug (the buffer alignment issue).
+3. Fix DBCS encodings file saving corruption bug.
+4. Fix file containing NULL character loading bug.
+5. Fix php syntax highlighting bug.
+6. Fix dragging undocked window performance issue while using Vista Aero UI style.
+7. Fix a vulnerability: get full ScinLexer.dll path to avoid hijack.
+8. Fix Shortcut Mapper inconsistence issue after deleting a macro or an user command.
+9. Add 2 line wrap methods (default plus aligned and indent).
+10. Add 2 menu commands : "Modify Shortcut/Delete Macro" and "Modify Shortcut/Delete Command".
+11. Add "Modify" and "Delete" buttons on Shortcut mapper dialog.
+12. Add macro new ability to record search and replace actions.
+13. Fix SaveSession bug.
+14. Remove characters count feature from the status bar due to its performance issue with UTF8 file.
+15. Fix crash issue due to themes switching.
+16. Make folding margin hidable.
+17. Add NPPM_GETCURRENTNATIVELANGENCODING message (to get the current native language enconding).
+18. Change editing settings saving behaviour : one set of settings are applied in 2 scintilla controls (except zoom).
-1. Upgrade Scintilla to version 2.12.
-2. Add "Inverse bookmark" feature.
-3. Add NPPM_SAVECURRENTFILEAS message.
-4. Fix premature deallocation bug for import UDL.
-5. Add import/export User Defined Language features.
-6. File detection : Switch to modified or deleted file while user is asked to reload or keep the file.
-7. Fix closing several detected non-existing files bug.
-8. Fix language switching to English not working bug.
-9. Reduce PostIt/FullScreen restore button size.
-10. Fix PostIt wrong restore button position after toggling off fullScreen mode.
-11. Fix crashes on new 11 character long UDL names bug.
-12. Fix "Save all" inconsistent icon state on toolbar.
-13. Add new keywords of HTML 5 and css.
Included plugins (Unicode):
@@ -21,9 +27,9 @@ Included plugins (Unicode):
2. Spell Checker v1.3.3
3. MIME Tools v1.6
4. NppExport v0.2.8
-5. Compare Plugin 1.5.6
+5. Compare Plugin 1.5.6.1
6. Plugin Manager 0.9.3.1
-7. NppFTP 0.1.3.0
+7. NppFTP 0.23
8. Select 'N' Launch 1.0
diff --git a/PowerEditor/installer/nativeLang/Latvian.xml b/PowerEditor/installer/nativeLang/Latvian.xml
index 70077373..ea4adbe7 100644
--- a/PowerEditor/installer/nativeLang/Latvian.xml
+++ b/PowerEditor/installer/nativeLang/Latvian.xml
@@ -1,5 +1,5 @@
-
+
diff --git a/PowerEditor/installer/nativeLang/danish.xml b/PowerEditor/installer/nativeLang/danish.xml
index d1cbb973..0f172854 100644
--- a/PowerEditor/installer/nativeLang/danish.xml
+++ b/PowerEditor/installer/nativeLang/danish.xml
@@ -1,7 +1,7 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/PowerEditor/installer/nativeLang/romanian.xml b/PowerEditor/installer/nativeLang/romanian.xml
index fa98a889..8e12327a 100644
--- a/PowerEditor/installer/nativeLang/romanian.xml
+++ b/PowerEditor/installer/nativeLang/romanian.xml
@@ -5,7 +5,7 @@
-
+
@@ -27,10 +27,11 @@
-
-
-
-
+
+
+
+
+
@@ -103,8 +104,8 @@
-
-
+
+
@@ -122,7 +123,7 @@
-
+
@@ -154,17 +155,20 @@
-
-
-
+
+
+
+
+
+
-
-
+
+
@@ -221,8 +225,8 @@
-
-
+
+
@@ -236,8 +240,8 @@
-
-
+
+
@@ -249,7 +253,7 @@
-
+
@@ -276,15 +280,15 @@
-
+
-
+
-
+
@@ -353,6 +357,8 @@
+
+
@@ -404,15 +410,15 @@
-
-
-
+
+
+
-
+
@@ -467,14 +473,14 @@
-
+
-
+
-
+
@@ -518,18 +524,18 @@
-
+
-
+
-
+
-
+
-
-
+
+
@@ -538,7 +544,7 @@
-
+
@@ -567,7 +573,7 @@
-
+
diff --git a/PowerEditor/installer/nativeLang/russian.xml b/PowerEditor/installer/nativeLang/russian.xml
index 7c40cfcf..875df9c6 100644
--- a/PowerEditor/installer/nativeLang/russian.xml
+++ b/PowerEditor/installer/nativeLang/russian.xml
@@ -1,148 +1,146 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -159,425 +157,418 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-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
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
diff --git a/PowerEditor/installer/nativeLang/serbianCyrillic.xml b/PowerEditor/installer/nativeLang/serbianCyrillic.xml
index f5322561..c4f6e801 100644
--- a/PowerEditor/installer/nativeLang/serbianCyrillic.xml
+++ b/PowerEditor/installer/nativeLang/serbianCyrillic.xml
@@ -1,446 +1,583 @@
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+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
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
\ No newline at end of file
diff --git a/PowerEditor/installer/nativeLang/swedish.xml b/PowerEditor/installer/nativeLang/swedish.xml
index b6e6fbf4..76e71dde 100644
--- a/PowerEditor/installer/nativeLang/swedish.xml
+++ b/PowerEditor/installer/nativeLang/swedish.xml
@@ -1,4 +1,4 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/PowerEditor/installer/nppSetup.nsi b/PowerEditor/installer/nppSetup.nsi
index 0fac45e0..2512ade3 100644
--- a/PowerEditor/installer/nppSetup.nsi
+++ b/PowerEditor/installer/nppSetup.nsi
@@ -19,9 +19,9 @@
!define APPNAME "Notepad++"
!define APPVERSION "5.7"
-!define APPNAMEANDVERSION "Notepad++ v5.7"
+!define APPNAMEANDVERSION "Notepad++ v5.7.1"
!define VERSION_MAJOR 5
-!define VERSION_MINOR 7
+!define VERSION_MINOR 71
!define APPWEBSITE "http://notepad-plus.sourceforge.net/"
@@ -29,7 +29,7 @@
Name "${APPNAMEANDVERSION}"
InstallDir "$PROGRAMFILES\Notepad++"
InstallDirRegKey HKLM "Software\${APPNAME}" ""
-OutFile ".\build\npp.5.7.Installer.exe"
+OutFile ".\build\npp.5.7.1.Installer.exe"
; GetWindowsVersion
;
diff --git a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp
index 54d14392..df606027 100644
--- a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp
+++ b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp
@@ -208,12 +208,6 @@ void ScintillaEditView::init(HINSTANCE hInst, HWND hPere)
execute(SCI_SETMARGINSENSITIVEN, _SC_MARGE_FOLDER, true);
execute(SCI_SETMARGINSENSITIVEN, _SC_MARGE_SYBOLE, true);
- execute(SCI_SETPROPERTY, reinterpret_cast("fold"), reinterpret_cast("1"));
- execute(SCI_SETPROPERTY, reinterpret_cast("fold.compact"), reinterpret_cast("0"));
-
- execute(SCI_SETPROPERTY, reinterpret_cast("fold.html"), reinterpret_cast("1"));
- execute(SCI_SETPROPERTY, reinterpret_cast("fold.comment"), reinterpret_cast("1"));
- execute(SCI_SETPROPERTY, reinterpret_cast("fold.preprocessor"), reinterpret_cast("1"));
execute(SCI_SETFOLDFLAGS, 16);
execute(SCI_SETSCROLLWIDTHTRACKING, true);
execute(SCI_SETSCROLLWIDTH, 1); //default empty document: override default width of 2000
@@ -528,6 +522,9 @@ void ScintillaEditView::setXmlLexer(LangType type)
setEmbeddedPhpLexer();
setEmbeddedAspLexer();
}
+ execute(SCI_SETPROPERTY, reinterpret_cast("fold"), reinterpret_cast("1"));
+ execute(SCI_SETPROPERTY, reinterpret_cast("fold.compact"), reinterpret_cast("0"));
+ execute(SCI_SETPROPERTY, reinterpret_cast("fold.html"), reinterpret_cast("1"));
}
void ScintillaEditView::setEmbeddedJSLexer()
@@ -679,7 +676,7 @@ void ScintillaEditView::setCppLexer(LangType langType)
const TCHAR *lexerName = ScintillaEditView::langNames[langType].lexerName;
- execute(SCI_SETLEXER, SCLEX_CPP);
+ execute(SCI_SETLEXER, SCLEX_CPP);
if ((langType != L_RC) && (langType != L_JS))
{
@@ -758,6 +755,14 @@ void ScintillaEditView::setCppLexer(LangType langType)
execute(SCI_SETKEYWORDS, 0, (LPARAM)cppInstrs);
execute(SCI_SETKEYWORDS, 1, (LPARAM)cppTypes);
+ execute(SCI_SETPROPERTY, reinterpret_cast("fold"), reinterpret_cast("1"));
+ execute(SCI_SETPROPERTY, reinterpret_cast("fold.compact"), reinterpret_cast("0"));
+
+ execute(SCI_SETPROPERTY, reinterpret_cast("fold.comment"), reinterpret_cast("1"));
+ execute(SCI_SETPROPERTY, reinterpret_cast("fold.preprocessor"), reinterpret_cast("1"));
+
+ // "#if 1 //" make CppLexer crash, so we disable it.
+ execute(SCI_SETPROPERTY, reinterpret_cast("lexer.cpp.track.preprocessor"), reinterpret_cast("0"));
}
void ScintillaEditView::setTclLexer()
@@ -957,6 +962,11 @@ void ScintillaEditView::setLexer(int lexerID, LangType langType, int whichList)
setKeywords(langType, pKwArray[LANG_INDEX_TYPE5], LANG_INDEX_TYPE5);
#endif
}
+ execute(SCI_SETPROPERTY, reinterpret_cast("fold"), reinterpret_cast("1"));
+ execute(SCI_SETPROPERTY, reinterpret_cast("fold.compact"), reinterpret_cast("0"));
+
+ execute(SCI_SETPROPERTY, reinterpret_cast("fold.comment"), reinterpret_cast("1"));
+ execute(SCI_SETPROPERTY, reinterpret_cast("fold.preprocessor"), reinterpret_cast("1"));
}
void ScintillaEditView::makeStyle(LangType language, const TCHAR **keywordArray)
diff --git a/PowerEditor/src/WinControls/Window.h b/PowerEditor/src/WinControls/Window.h
index 4498e2f0..da92d1a0 100644
--- a/PowerEditor/src/WinControls/Window.h
+++ b/PowerEditor/src/WinControls/Window.h
@@ -81,7 +81,7 @@ public:
};
HWND getHSelf() const {
- assert(_hSelf != 0);
+ //assert(_hSelf != 0);
return _hSelf;
};
@@ -94,7 +94,7 @@ public:
};
HINSTANCE getHinst() const {
- assert(_hInst != 0);
+ //assert(_hInst != 0);
return _hInst;
};
protected: