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)
diff --git a/src/gui_w32.c b/src/gui_w32.c
index c3178ba..119bcd5 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -127,6 +127,9 @@
return FAIL;
}
+ if (!gui.in_use)
+ return OK; /* only checking the syntax of the value */
+
/* Enable DirectX/DirectWrite */
if (dx_enable)
{
diff --git a/src/option.c b/src/option.c
index c97056b..08fb789 100644
--- a/src/option.c
+++ b/src/option.c
@@ -7406,7 +7406,7 @@
#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;
diff --git a/src/version.c b/src/version.c
index 3e84229..837ca02 100644
--- a/src/version.c
+++ b/src/version.c
@@ -772,6 +772,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1373,
+/**/
1372,
/**/
1371,