notepad-plus-plus icon indicating copy to clipboard operation
notepad-plus-plus copied to clipboard

Add a new message NPPM_GETBUFFERIDFROMLEXER

Open blu3mania opened this issue 3 years ago • 0 comments

Add a new message NPPM_GETBUFFERIDFROMLEXER for external lexer to query for buffer ID by providing lexer instance pointer. Enhanced Buffer to cache associated external lexer pointer, and FileManager to provide a lookup method to find the buffer in its list that is associated with the given lexer instance.

Without such a mechanism, it is impossible for lexer to know which instance should be used to handle messages received from Scintilla.

This closes #12351.

blu3mania avatar Oct 18 '22 04:10 blu3mania