[geany/geany] fa5929: Fix clearing styles in sci_set_lexer()
Nick Treleaven
git-noreply at xxxxx
Wed May 30 12:03:42 UTC 2012
Branch: refs/heads/master
Author: Nick Treleaven <nick.treleaven at btinternet.com>
Committer: Nick Treleaven <nick.treleaven at btinternet.com>
Date: Wed, 30 May 2012 12:03:42
Commit: fa5929ecbe75b2cd1adad1abcf3e52c3fac3ad28
https://github.com/geany/geany/commit/fa5929ecbe75b2cd1adad1abcf3e52c3fac3ad28
Log Message:
-----------
Fix clearing styles in sci_set_lexer()
Modified Paths:
--------------
src/sciwrappers.c
Modified: src/sciwrappers.c
4 files changed, 3 insertions(+), 1 deletions(-)
===================================================================
@@ -531,9 +531,11 @@ gint sci_get_lexer(ScintillaObject *sci)
void sci_set_lexer(ScintillaObject *sci, guint lexer_id)
{
+ gint old = sci_get_lexer(sci);
+
SSM(sci, SCI_SETLEXER, lexer_id, 0);
- if (sci_get_lexer(sci) != (gint)lexer_id)
+ if (old != (gint)lexer_id)
SSM(sci, SCI_CLEARDOCUMENTSTYLE, 0, 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