0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

patch 8.0.1373: no error when settting 'renderoptions' before starting GUI

Problem:    No error when settting 'renderoptions' to an invalid value before
            starting the GUI.
Solution:   Always check the value. (Ken Takata, closes #2413)
This commit is contained in:
Bram Moolenaar
2017-12-05 16:57:56 +01:00
parent ac112f01a6
commit 3767c6e9ee
3 changed files with 6 additions and 1 deletions

View File

@@ -127,6 +127,9 @@ gui_mch_set_rendering_options(char_u *s)
return FAIL;
}
if (!gui.in_use)
return OK; /* only checking the syntax of the value */
/* Enable DirectX/DirectWrite */
if (dx_enable)
{