summaryrefslogtreecommitdiffstats
path: root/src/edit.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/edit.c
parent5dc294a7b63ed0e508dd360bc4d98173f1a1aeec (diff)
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/edit.c')
-rw-r--r--src/edit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/edit.c b/src/edit.c
index c28c1f98a3..3790bfb5d6 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -4407,7 +4407,7 @@ bracketed_paste(paste_mode_T mode, int drop, garray_T *gap)
if (!p_paste)
// Also have the side effects of setting 'paste' to make it work much
// faster.
- set_option_value((char_u *)"paste", TRUE, NULL, 0);
+ set_option_value_give_err((char_u *)"paste", TRUE, NULL, 0);
for (;;)
{
@@ -4482,7 +4482,7 @@ bracketed_paste(paste_mode_T mode, int drop, garray_T *gap)
--no_mapping;
allow_keys = save_allow_keys;
if (!save_paste)
- set_option_value((char_u *)"paste", FALSE, NULL, 0);
+ set_option_value_give_err((char_u *)"paste", FALSE, NULL, 0);
return ret_char;
}