summaryrefslogtreecommitdiff
path: root/src/channel.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-04-15 13:53:33 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-15 13:53:33 +0100
commit31e5c60a682840959cae6273ccadd9aae48c928d (patch)
treea72168baa32f1899937f3937a41b0832eac66b8f /src/channel.c
parent5dc294a7b63ed0e508dd360bc4d98173f1a1aeec (diff)
downloadvim-git-31e5c60a682840959cae6273ccadd9aae48c928d.tar.gz
patch 8.2.4753: error from setting an option is silently ignoredv8.2.4753
Problem: Error from setting an option is silently ignored. Solution: Handle option value errors better. Fix uses of N_().
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/channel.c b/src/channel.c
index e971e17c0..85089cb18 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -1183,8 +1183,9 @@ prepare_buffer(buf_T *buf)
buf_copy_options(buf, BCO_ENTER);
curbuf = buf;
#ifdef FEAT_QUICKFIX
- set_option_value((char_u *)"bt", 0L, (char_u *)"nofile", OPT_LOCAL);
- set_option_value((char_u *)"bh", 0L, (char_u *)"hide", OPT_LOCAL);
+ set_option_value_give_err((char_u *)"bt",
+ 0L, (char_u *)"nofile", OPT_LOCAL);
+ set_option_value_give_err((char_u *)"bh", 0L, (char_u *)"hide", OPT_LOCAL);
#endif
if (curbuf->b_ml.ml_mfp == NULL)
ml_open(curbuf);