comparison src/optionstr.c @ 23810:8152b7daebad v8.2.2446

patch 8.2.2446: setting 'term' empty has different error if compiled with GUI Commit: https://github.com/vim/vim/commit/5daa91162699e4f8b54f9d1caaaab2715038941c Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 1 18:39:47 2021 +0100 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 https://github.com/vim/vim/issues/7766)
author Bram Moolenaar <Bram@vim.org>
date Mon, 01 Feb 2021 18:45:06 +0100
parents 92a100fc5e17
children 44be09b25619
comparison
equal deleted inserted replaced
23809:0dcd6d533273 23810:8152b7daebad
685 else if (varp == &T_NAME) 685 else if (varp == &T_NAME)
686 { 686 {
687 if (T_NAME[0] == NUL) 687 if (T_NAME[0] == NUL)
688 errmsg = N_("E529: Cannot set 'term' to empty string"); 688 errmsg = N_("E529: Cannot set 'term' to empty string");
689 #ifdef FEAT_GUI 689 #ifdef FEAT_GUI
690 if (gui.in_use) 690 else if (gui.in_use)
691 errmsg = N_("E530: Cannot change term in GUI"); 691 errmsg = N_("E530: Cannot change term in GUI");
692 else if (term_is_gui(T_NAME)) 692 else if (term_is_gui(T_NAME))
693 errmsg = N_("E531: Use \":gui\" to start the GUI"); 693 errmsg = N_("E531: Use \":gui\" to start the GUI");
694 #endif 694 #endif
695 else if (set_termname(T_NAME) == FAIL) 695 else if (set_termname(T_NAME) == FAIL)