Kaydet (Commit) 2d06cd6c authored tarafından Colomban Wendling's avatar Colomban Wendling

Don't set font twice for line numbers and braces

No need to set the font for some specific styles that are set up anyway
when we set the font for all styles from 0 to STYLE_MAX.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5700 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 7a3530b3
......@@ -10,6 +10,8 @@
Highlight triple-quoted verbatims in Vala, Genie and Scala filtypes.
* data/filetypes.Genie.conf:
Copy C styling rather than redefining the styles.
* src/editor.c:
Don't set font twice for line numbers and braces.
2011-04-05 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
......
......@@ -4481,10 +4481,6 @@ void editor_set_font(GeanyEditor *editor, const gchar *font)
for (style = 0; style <= STYLE_MAX; style++)
sci_set_font(editor->sci, style, font_name, size);
/* line number and braces */
sci_set_font(editor->sci, STYLE_LINENUMBER, font_name, size);
sci_set_font(editor->sci, STYLE_BRACELIGHT, font_name, size);
sci_set_font(editor->sci, STYLE_BRACEBAD, font_name, size);
g_free(font_name);
/* zoom to 100% to prevent confusion */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment