comparison src/gui_gtk_x11.c @ 28457:4dcccb2673fe v8.2.4753

patch 8.2.4753: error from setting an option is silently ignored Commit: https://github.com/vim/vim/commit/31e5c60a682840959cae6273ccadd9aae48c928d Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 15 13:53:33 2022 +0100 patch 8.2.4753: error from setting an option is silently ignored Problem: Error from setting an option is silently ignored. Solution: Handle option value errors better. Fix uses of N_().
author Bram Moolenaar <Bram@vim.org>
date Fri, 15 Apr 2022 15:00:04 +0200
parents 06a137af96f8
children bae90eec6d14
comparison
equal deleted inserted replaced
28456:6353f897ac82 28457:4dcccb2673fe
3460 /* 3460 /*
3461 * Force UTF-8 output no matter what the value of 'encoding' is. 3461 * Force UTF-8 output no matter what the value of 'encoding' is.
3462 * did_set_string_option() in option.c prohibits changing 'termencoding' 3462 * did_set_string_option() in option.c prohibits changing 'termencoding'
3463 * to something else than UTF-8 if the GUI is in use. 3463 * to something else than UTF-8 if the GUI is in use.
3464 */ 3464 */
3465 set_option_value((char_u *)"termencoding", 0L, (char_u *)"utf-8", 0); 3465 set_option_value_give_err((char_u *)"termencoding",
3466 0L, (char_u *)"utf-8", 0);
3466 3467
3467 #ifdef FEAT_TOOLBAR 3468 #ifdef FEAT_TOOLBAR
3468 gui_gtk_register_stock_icons(); 3469 gui_gtk_register_stock_icons();
3469 #endif 3470 #endif
3470 // FIXME: Need to install the classic icons and a gtkrc.classic file. 3471 // FIXME: Need to install the classic icons and a gtkrc.classic file.