Skip to content

Commit

Permalink
fix #303
Browse files Browse the repository at this point in the history
add missing addition of new method allocateIndicator to export_notepad
  • Loading branch information
chcg committed Aug 20, 2023
1 parent 0c7e163 commit 4db08df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PythonScript/src/NotepadPython.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ void export_notepad()
.def("getCommandLine", &NotepadPlusWrapper::getCommandLine, "Gets the command line used to start Notepad++")
.def("allocateSupported", &NotepadPlusWrapper::allocateSupported, "Returns True if the Command ID allocation API is supported in this version of Notepad++")
.def("allocateCmdID", &NotepadPlusWrapper::allocateCmdID, "allocateCmdID(numberRequested) -> int\nAllocates a Command ID for use in WM_COMMAND. Mainly used internally by plugins.")
.def("allocateMarker", &NotepadPlusWrapper::allocateMarker, "allocateMarker(numberRequested) -> int\nAllocates a marker number for Scintilla. Use this to stop marker number collisions with other plugins / scripts.")
.def("allocateMarker", &NotepadPlusWrapper::allocateMarker, "allocateMarker(numberRequested) -> int\nAllocates a range of marker numbers for Scintilla. Use this to stop marker number collisions with other plugins / scripts.")
.def("allocateIndicator", &NotepadPlusWrapper::allocateIndicator, "allocateIndicator(numberRequested) -> int\nAllocates a range of indicator numbers for Scintilla. Use this to stop indicator number collisions with other plugins / scripts.")
.def("getPluginVersion", &NotepadPlusWrapper::getPluginVersion, "getPluginVersion() -> str\nGets the version number of the PythonScript plugin, in the format '0.9.0.1'")
.def("outputDebugString", &NotepadPlusWrapper::outputDebugString, "Outputs a debug string using the Windows OutputDebugString API call - used primarily for debugging PythonScript itself")
.def("getMenuHandle", &NotepadPlusWrapper::getMenuHandle, boost::python::args("menu"), "Gets the handle for the main or plugins menu.")
Expand Down

1 comment on commit 4db08df

@alankilborn
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chcg I tested notepad.allocateIndicator() with this commit, and it appears to be working as intended. Thanks for your work.

Please sign in to comment.