diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-05-04 03:42:34 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-05-04 03:42:34 +0200 |
commit | 29f49ee8d728ab77229351662b3345ed8591dd09 (patch) | |
tree | c1b2fc4d97007fb74605556faec0e80cbffa3a06 /src/syntax.c | |
parent | 4e0d974645012c3fc07d1754a4729d21e49773b6 (diff) | |
download | vim-29f49ee8d728ab77229351662b3345ed8591dd09.zip |
updated for version 7.3.921
Problem: Trying to create a fontset handle when 'guifontset' is not set.
Solution: Add curly braces around the code block. (Max Kirillov)
Diffstat (limited to 'src/syntax.c')
-rw-r--r-- | src/syntax.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/syntax.c b/src/syntax.c index 8e2930cf5..4c697698c 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -8082,6 +8082,7 @@ hl_do_font(idx, arg, do_normal, do_menu, do_tooltip, free_font) || do_tooltip # endif ) + { if (free_font) gui_mch_free_fontset(HL_TABLE()[idx].sg_fontset); HL_TABLE()[idx].sg_fontset = fontset_name2handle(arg, 0 @@ -8092,6 +8093,7 @@ hl_do_font(idx, arg, do_normal, do_menu, do_tooltip, free_font) || do_tooltip # endif ); + } if (HL_TABLE()[idx].sg_fontset != NOFONTSET) { /* If it worked and it's the Normal group, use it as the normal |