diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-02-01 18:39:47 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-02-01 18:39:47 +0100 |
commit | 5daa91162699e4f8b54f9d1caaaab2715038941c (patch) | |
tree | 148b87ce1a9fbb8401f1b0b0eb25c6e2e0b6e403 /src/optionstr.c | |
parent | 0346b799fc228a3b48967ca0747e6b23586dbaa6 (diff) | |
download | vim-git-5daa91162699e4f8b54f9d1caaaab2715038941c.tar.gz |
patch 8.2.2446: setting 'term' empty has different error if compiled with GUIv8.2.2446
Problem: Setting 'term' empty has different error if compiled with GUI.
Solution: Insert "else". (closes #7766)
Diffstat (limited to 'src/optionstr.c')
-rw-r--r-- | src/optionstr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/optionstr.c b/src/optionstr.c index 8f3f0c5ed..c8a5b0c65 100644 --- a/src/optionstr.c +++ b/src/optionstr.c @@ -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"); |