[geany/geany] 12a129: Do not change message order for sci_set_lexer()
Nick Treleaven
git-noreply at xxxxx
Tue May 29 16:55:43 UTC 2012
Branch: refs/heads/master
Author: Nick Treleaven <nick.treleaven at btinternet.com>
Committer: Nick Treleaven <nick.treleaven at btinternet.com>
Date: Tue, 29 May 2012 16:55:43
Commit: 12a1295dd1a0e769951b7d7a2ee89f90c4e869a5
https://github.com/geany/geany/commit/12a1295dd1a0e769951b7d7a2ee89f90c4e869a5
Log Message:
-----------
Do not change message order for sci_set_lexer()
Scintilla mentions clearing styles after setting lexer.
Modified Paths:
--------------
src/sciwrappers.c
Modified: src/sciwrappers.c
4 files changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -531,10 +531,10 @@ gint sci_get_lexer(ScintillaObject *sci)
void sci_set_lexer(ScintillaObject *sci, guint lexer_id)
{
+ SSM(sci, SCI_SETLEXER, lexer_id, 0);
+
if (sci_get_lexer(sci) != (gint)lexer_id)
SSM(sci, SCI_CLEARDOCUMENTSTYLE, 0, 0);
-
- SSM(sci, SCI_SETLEXER, lexer_id, 0);
}
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
More information about the Commits
mailing list