Mercurial > vim
comparison src/popupmenu.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 | 0f1a0bef2c02 |
children | d770568e6c98 |
comparison
equal
deleted
inserted
replaced
28456:6353f897ac82 | 28457:4dcccb2673fe |
---|---|
874 --no_u_sync; | 874 --no_u_sync; |
875 if (res == OK) | 875 if (res == OK) |
876 { | 876 { |
877 // Edit a new, empty buffer. Set options for a "wipeout" | 877 // Edit a new, empty buffer. Set options for a "wipeout" |
878 // buffer. | 878 // buffer. |
879 set_option_value((char_u *)"swf", 0L, NULL, OPT_LOCAL); | 879 set_option_value_give_err((char_u *)"swf", |
880 set_option_value((char_u *)"bl", 0L, NULL, OPT_LOCAL); | 880 0L, NULL, OPT_LOCAL); |
881 set_option_value((char_u *)"bt", 0L, | 881 set_option_value_give_err((char_u *)"bl", |
882 (char_u *)"nofile", OPT_LOCAL); | 882 0L, NULL, OPT_LOCAL); |
883 set_option_value((char_u *)"bh", 0L, | 883 set_option_value_give_err((char_u *)"bt", |
884 (char_u *)"wipe", OPT_LOCAL); | 884 0L, (char_u *)"nofile", OPT_LOCAL); |
885 set_option_value((char_u *)"diff", 0L, | 885 set_option_value_give_err((char_u *)"bh", |
886 NULL, OPT_LOCAL); | 886 0L, (char_u *)"wipe", OPT_LOCAL); |
887 set_option_value_give_err((char_u *)"diff", | |
888 0L, NULL, OPT_LOCAL); | |
887 } | 889 } |
888 } | 890 } |
889 if (res == OK) | 891 if (res == OK) |
890 { | 892 { |
891 char_u *p, *e; | 893 char_u *p, *e; |