diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-12-05 16:57:56 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-12-05 16:57:56 +0100 |
commit | 3767c6e9ee1bd585a2afba7e932854b24d194a2d (patch) | |
tree | 15551fa5d9477a811d2b85015555f4e532113360 /src/gui_w32.c | |
parent | ac112f01a6930c9d15cf0360b657373699916bfd (diff) |
patch 8.0.1373: no error when settting 'renderoptions' before starting GUIv8.0.1373
Problem: No error when settting 'renderoptions' to an invalid value before
starting the GUI.
Solution: Always check the value. (Ken Takata, closes #2413)
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r-- | src/gui_w32.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c index c3178ba5d3..119bcd5790 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -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) { |