mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user