[geany/geany] edd672: Don't clear styles when setting lexer id unless it has changed
Nick Treleaven
git-noreply at xxxxx
Tue May 29 14:16:24 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 14:16:24
Commit: edd672c3e5d1aff00816e2fc57f58d69b84fa019
https://github.com/geany/geany/commit/edd672c3e5d1aff00816e2fc57f58d69b84fa019
Log Message:
-----------
Don't clear styles when setting lexer id unless it has changed
This fixes styles being cleared when using the Split Window plugin.
Modified Paths:
--------------
src/sciwrappers.c
Modified: src/sciwrappers.c
4 files changed, 3 insertions(+), 1 deletions(-)
===================================================================
@@ -531,8 +531,10 @@ gint sci_get_lexer(ScintillaObject *sci)
void sci_set_lexer(ScintillaObject *sci, guint lexer_id)
{
+ if (sci_get_lexer(sci) != (gint)lexer_id)
+ SSM(sci, SCI_CLEARDOCUMENTSTYLE, 0, 0);
+
SSM(sci, SCI_SETLEXER, lexer_id, 0);
- 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