Skip to content

Commit 72aaf66

Browse files
committed
updated Npp files to 8.5.1
1 parent 1d56127 commit 72aaf66

File tree

7 files changed

+20
-7
lines changed

7 files changed

+20
-7
lines changed

NppPlugin/include/DockingDlgInterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class DockingDlgInterface : public StaticDialog
3737
virtual void init(HINSTANCE hInst, HWND parent) {
3838
StaticDialog::init(hInst, parent);
3939
TCHAR temp[MAX_PATH];
40-
::GetModuleFileName(reinterpret_cast<HMODULE>(hInst), temp, MAX_PATH);
40+
::GetModuleFileName(hInst, temp, MAX_PATH);
4141
_moduleName = ::PathFindFileName(temp);
4242
}
4343

NppPlugin/include/Notepad_plus_msgs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ enum LangType {L_TEXT, L_PHP , L_C, L_CPP, L_CS, L_OBJC, L_JAVA, L_RC,\
3333
L_CSOUND, L_ERLANG, L_ESCRIPT, L_FORTH, L_LATEX, \
3434
L_MMIXAL, L_NIM, L_NNCRONTAB, L_OSCRIPT, L_REBOL, \
3535
L_REGISTRY, L_RUST, L_SPICE, L_TXT2TAGS, L_VISUALPROLOG,\
36-
L_TYPESCRIPT, L_JSON5,\
36+
L_TYPESCRIPT, L_JSON5, L_MSSQL, L_GDSCRIPT,\
3737
// Don't use L_JS, use L_JAVASCRIPT instead
3838
// The end of enumated language type, so it should be always at the end
3939
L_EXTERNAL};

NppPlugin/include/SciLexer.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,11 @@
558558
#define SCE_RB_STDIN 30
559559
#define SCE_RB_STDOUT 31
560560
#define SCE_RB_STDERR 40
561-
#define SCE_RB_UPPER_BOUND 41
561+
#define SCE_RB_STRING_W 41
562+
#define SCE_RB_STRING_I 42
563+
#define SCE_RB_STRING_QI 43
564+
#define SCE_RB_STRING_QS 44
565+
#define SCE_RB_UPPER_BOUND 45
562566
#define SCE_B_DEFAULT 0
563567
#define SCE_B_COMMENT 1
564568
#define SCE_B_NUMBER 2
@@ -2175,6 +2179,7 @@
21752179
#define SCE_GD_STRINGEOL 13
21762180
#define SCE_GD_WORD2 14
21772181
#define SCE_GD_ANNOTATION 15
2182+
#define SCE_GD_NODEPATH 16
21782183
/* --Autogenerated -- end of section automatically generated from Scintilla.iface */
21792184

21802185
#endif

NppPlugin/include/StaticDialog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public :
4949

5050
void redrawDlgItem(const int nIDDlgItem, bool forceUpdate = false) const;
5151

52-
void goToCenter();
52+
void goToCenter(UINT swpFlags = SWP_SHOWWINDOW);
5353

5454
void display(bool toShow = true, bool enhancedPositioningCheckWhenShowing = false) const;
5555

NppPlugin/include/menuCmdID.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@
170170
#define IDM_EDIT_INSERT_DATETIME_CUSTOMIZED (IDM_EDIT + 86)
171171
#define IDM_EDIT_COPY_ALL_NAMES (IDM_EDIT + 87)
172172
#define IDM_EDIT_COPY_ALL_PATHS (IDM_EDIT + 88)
173+
#define IDM_EDIT_BEGINENDSELECT_COLUMNMODE (IDM_EDIT + 89)
173174

174175
#define IDM_EDIT_AUTOCOMPLETE (50000 + 0)
175176
#define IDM_EDIT_AUTOCOMPLETE_CURRENTFILE (50000 + 1)
@@ -374,6 +375,8 @@
374375
#define IDM_VIEW_TAB_COLOUR_4 (IDM_VIEW + 114)
375376
#define IDM_VIEW_TAB_COLOUR_5 (IDM_VIEW + 115)
376377

378+
#define IDM_VIEW_NPC (IDM_VIEW + 130)
379+
377380
#define IDM_VIEW_GOTO_ANOTHER_VIEW 10001
378381
#define IDM_VIEW_CLONE_TO_ANOTHER_VIEW 10002
379382
#define IDM_VIEW_GOTO_NEW_INSTANCE 10003
@@ -534,6 +537,9 @@
534537
#define IDM_LANG_TXT2TAGS (IDM_LANG + 82)
535538
#define IDM_LANG_VISUALPROLOG (IDM_LANG + 83)
536539
#define IDM_LANG_TYPESCRIPT (IDM_LANG + 84)
540+
#define IDM_LANG_JSON5 (IDM_LANG + 85)
541+
#define IDM_LANG_MSSQL (IDM_LANG + 86)
542+
#define IDM_LANG_GDSCRIPT (IDM_LANG + 87)
537543

538544
#define IDM_LANG_EXTERNAL (IDM_LANG + 165)
539545
#define IDM_LANG_EXTERNAL_LIMIT (IDM_LANG + 179)

NppPlugin/src/StaticDialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ POINT StaticDialog::getTopPoint(HWND hwnd, bool isLeft) const
6565
return p;
6666
}
6767

68-
void StaticDialog::goToCenter()
68+
void StaticDialog::goToCenter(UINT swpFlags)
6969
{
7070
RECT rc{};
7171
::GetClientRect(_hParent, &rc);
@@ -77,7 +77,7 @@ void StaticDialog::goToCenter()
7777
int x = center.x - (_rc.right - _rc.left)/2;
7878
int y = center.y - (_rc.bottom - _rc.top)/2;
7979

80-
::SetWindowPos(_hSelf, HWND_TOP, x, y, _rc.right - _rc.left, _rc.bottom - _rc.top, SWP_SHOWWINDOW);
80+
::SetWindowPos(_hSelf, HWND_TOP, x, y, _rc.right - _rc.left, _rc.bottom - _rc.top, swpFlags);
8181
}
8282

8383
void StaticDialog::display(bool toShow, bool enhancedPositioningCheckWhenShowing) const

PythonScript/src/NotepadPython.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ void export_notepad()
214214
.value("TXT2TAGS", L_TXT2TAGS)
215215
.value("VISUALPROLOG", L_VISUALPROLOG)
216216
.value("TYPESCRIPT", L_TYPESCRIPT)
217-
.value("JSON5", L_JSON5);
217+
.value("JSON5", L_JSON5)
218+
.value("MSSQL", L_MSSQL)
219+
.value("GDSCRIPT", L_GDSCRIPT);
218220

219221
boost::python::enum_<winVer>("WINVER")
220222
.value("UNKNOWN", WV_UNKNOWN)

0 commit comments

Comments
 (0)