[geany/geany] 7b3b65: Add workaround for users with an invisible selection style
Nick Treleaven
git-noreply at xxxxx
Thu Jul 26 00:04:57 UTC 2012
Branch: refs/heads/document-messages
Author: Nick Treleaven <nick.treleaven at btinternet.com>
Committer: Nick Treleaven <nick.treleaven at btinternet.com>
Date: Sun, 03 Jun 2012 17:04:03
Commit: 7b3b65e27df77be862714e2de69aa9f61764a91b
https://github.com/geany/geany/commit/7b3b65e27df77be862714e2de69aa9f61764a91b
Log Message:
-----------
Add workaround for users with an invisible selection style
This is likely to be the case for any users that copied the system
selection style line as this was incorrectly set before, but not
applied.
Modified Paths:
--------------
src/highlighting.c
Modified: src/highlighting.c
6 files changed, 6 insertions(+), 0 deletions(-)
===================================================================
@@ -790,6 +790,12 @@ static void styleset_common(ScintillaObject *sci, guint ft_id)
sci_set_property(sci, "fold.at.else", "1");
style = &common_style_set.styling[GCS_SELECTION];
+ if (!style->bold && !style->italic)
+ {
+ g_warning("selection style is set to invisible - ignoring!");
+ style->italic = TRUE;
+ style->background = 0xc0c0c0;
+ }
/* bold (3rd argument) is whether to override default foreground selection */
SSM(sci, SCI_SETSELFORE, style->bold, invert(style->foreground));
/* italic (4th argument) is whether to override default background selection */
@@ 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