comparison src/optionstr.c @ 26948:51ddf6740ac6 v8.2.4003

patch 8.2.4003: error messages are spread out Commit: https://github.com/vim/vim/commit/d88be5be80f47826397d12ffc90150a443821f2b Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 4 19:57:55 2022 +0000 patch 8.2.4003: error messages are spread out Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
author Bram Moolenaar <Bram@vim.org>
date Tue, 04 Jan 2022 21:00:05 +0100
parents d91aea2a612c
children ac75c145f0a9
comparison
equal deleted inserted replaced
26947:81d60d47ba32 26948:51ddf6740ac6
1001 } 1001 }
1002 1002
1003 #if defined(FEAT_GUI_GTK) 1003 #if defined(FEAT_GUI_GTK)
1004 if (errmsg == NULL && varp == &p_tenc && gui.in_use) 1004 if (errmsg == NULL && varp == &p_tenc && gui.in_use)
1005 { 1005 {
1006 // GTK+ 2 uses only a single encoding, and that is UTF-8. 1006 // GTK uses only a single encoding, and that is UTF-8.
1007 if (STRCMP(p_tenc, "utf-8") != 0) 1007 if (STRCMP(p_tenc, "utf-8") != 0)
1008 errmsg = N_("E617: Cannot be changed in the GTK+ 2 GUI"); 1008 errmsg = e_cannot_be_changed_in_gtk_GUI;
1009 } 1009 }
1010 #endif 1010 #endif
1011 1011
1012 if (errmsg == NULL) 1012 if (errmsg == NULL)
1013 { 1013 {