@b4n commented on this pull request.


>       SSM(sci, SCI_SETILEXER, 0, (uintptr_t) lexer);
 
-       if (old != (gint)lexer_id)
+       if (old != sci_get_lexer(sci))

I'm not sure what is the recommendation on this: the 
[documentation](https://scintilla.org/ScintillaDoc.html#SCI_SETILEXER) says to 
use this for checking whether setting the new lexer worked.  OTOH, there is 
[SCI_GETLEXERLANGUAGE](https://scintilla.org/ScintillaDoc.html#SCI_GETLEXERLANGUAGE)
 which probably would work as well (albeit a bit more expansive).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3668#discussion_r1382201059
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/3668/review/[email protected]>

Reply via email to