0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.2446: setting 'term' empty has different error if compiled with GUI

Problem:    Setting 'term' empty has different error if compiled with GUI.
Solution:   Insert "else". (closes #7766)
This commit is contained in:
Bram Moolenaar
2021-02-01 18:39:47 +01:00
parent 0346b799fc
commit 5daa911626
3 changed files with 4 additions and 4 deletions

View File

@@ -687,7 +687,7 @@ did_set_string_option(
if (T_NAME[0] == NUL)
errmsg = N_("E529: Cannot set 'term' to empty string");
#ifdef FEAT_GUI
if (gui.in_use)
else if (gui.in_use)
errmsg = N_("E530: Cannot change term in GUI");
else if (term_is_gui(T_NAME))
errmsg = N_("E531: Use \":gui\" to start the GUI");