diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-05 09:50:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 09:50:36 +0800 |
commit | 9ded4c127599b821d0875db9d63049b5970437a4 (patch) | |
tree | 04ab960fec3aaaf6d139164e27ee8c4c6ff8f900 /src/nvim/ops.c | |
parent | d79e72621226cae91c8d8f6ad23e3c0670e1211c (diff) | |
parent | bdaaf2e8e113f8c32c70f83b60e0bf3f648357c1 (diff) | |
download | rneovim-9ded4c127599b821d0875db9d63049b5970437a4.tar.gz rneovim-9ded4c127599b821d0875db9d63049b5970437a4.tar.bz2 rneovim-9ded4c127599b821d0875db9d63049b5970437a4.zip |
Merge pull request #23483 from zeertzjq/vim-8.2.3135
vim-patch:8.2.{3135,4890,4892},9.0.0250: error message improvements
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index d8380303a3..bb66bb5731 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -96,6 +96,9 @@ struct block_def { # include "ops.c.generated.h" #endif +static const char e_search_pattern_and_expression_register_may_not_contain_two_or_more_lines[] + = N_("E883: Search pattern and expression register may not contain two or more lines"); + // Flags for third item in "opchars". #define OPF_LINES 1 // operator always works on lines #define OPF_CHANGE 2 // operator changes text @@ -5043,8 +5046,7 @@ void write_reg_contents_lst(int name, char **strings, bool must_append, MotionTy if (strings[0] == NULL) { s = ""; } else if (strings[1] != NULL) { - emsg(_("E883: search pattern and expression register may not " - "contain two or more lines")); + emsg(_(e_search_pattern_and_expression_register_may_not_contain_two_or_more_lines)); return; } write_reg_contents_ex(name, s, -1, must_append, yank_type, block_len); |