Skip to content

Commit

Permalink
Fix error check of 'rop'
Browse files Browse the repository at this point in the history
  • Loading branch information
k-takata committed Dec 5, 2017
1 parent 1eca6f1 commit 2199978
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/gui_w32.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ gui_mch_set_rendering_options(char_u *s)
return FAIL;
}

if (!gui.in_use)
return OK;

/* Enable DirectX/DirectWrite */
if (dx_enable)
{
Expand Down
2 changes: 1 addition & 1 deletion src/option.c
Original file line number Diff line number Diff line change
Expand Up @@ -7406,7 +7406,7 @@ did_set_string_option(

#if defined(FEAT_RENDER_OPTIONS)
/* 'renderoptions' */
else if (varp == &p_rop && gui.in_use)
else if (varp == &p_rop)
{
if (!gui_mch_set_rendering_options(p_rop))
errmsg = e_invarg;
Expand Down

0 comments on commit 2199978

Please sign in to comment.