Mercurial > vim
comparison src/channel.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 | 0533e7466ef0 |
children | 3beb14b12bbd |
comparison
equal
deleted
inserted
replaced
28456:6353f897ac82 | 28457:4dcccb2673fe |
---|---|
1181 buf_T *save_curbuf = curbuf; | 1181 buf_T *save_curbuf = curbuf; |
1182 | 1182 |
1183 buf_copy_options(buf, BCO_ENTER); | 1183 buf_copy_options(buf, BCO_ENTER); |
1184 curbuf = buf; | 1184 curbuf = buf; |
1185 #ifdef FEAT_QUICKFIX | 1185 #ifdef FEAT_QUICKFIX |
1186 set_option_value((char_u *)"bt", 0L, (char_u *)"nofile", OPT_LOCAL); | 1186 set_option_value_give_err((char_u *)"bt", |
1187 set_option_value((char_u *)"bh", 0L, (char_u *)"hide", OPT_LOCAL); | 1187 0L, (char_u *)"nofile", OPT_LOCAL); |
1188 set_option_value_give_err((char_u *)"bh", 0L, (char_u *)"hide", OPT_LOCAL); | |
1188 #endif | 1189 #endif |
1189 if (curbuf->b_ml.ml_mfp == NULL) | 1190 if (curbuf->b_ml.ml_mfp == NULL) |
1190 ml_open(curbuf); | 1191 ml_open(curbuf); |
1191 curbuf = save_curbuf; | 1192 curbuf = save_curbuf; |
1192 } | 1193 } |