aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/optionstr.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-05 07:14:39 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-05-05 09:20:30 +0800
commit88cfb49bee3c9102082c7010acb92244e4ad1348 (patch)
tree14c4ab0d2b319f83c42d940b00aebd42e8d971ac /src/nvim/optionstr.c
parentb8d5586d5b0d1e2d25533ee398d16bb2e8412820 (diff)
downloadrneovim-88cfb49bee3c9102082c7010acb92244e4ad1348.tar.gz
rneovim-88cfb49bee3c9102082c7010acb92244e4ad1348.tar.bz2
rneovim-88cfb49bee3c9102082c7010acb92244e4ad1348.zip
vim-patch:8.2.4890: inconsistent capitalization in error messages
Problem: Inconsistent capitalization in error messages. Solution: Make capitalization consistent. (Doug Kearns) https://github.com/vim/vim/commit/cf030578b26460643dca4a40e7f2e3bc19c749aa Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/optionstr.c')
-rw-r--r--src/nvim/optionstr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/optionstr.c b/src/nvim/optionstr.c
index 28c0e3f97d..1c75d5bd03 100644
--- a/src/nvim/optionstr.c
+++ b/src/nvim/optionstr.c
@@ -61,8 +61,10 @@
static const char e_unclosed_expression_sequence[]
= N_("E540: Unclosed expression sequence");
+static const char e_comma_required[]
+ = N_("E536: Comma required");
static const char e_unbalanced_groups[]
- = N_("E542: unbalanced groups");
+ = N_("E542: Unbalanced groups");
static const char e_backupext_and_patchmode_are_equal[]
= N_("E589: 'backupext' and 'patchmode' are equal");
static const char e_showbreak_contains_unprintable_or_wide_character[]
@@ -1743,7 +1745,7 @@ const char *did_set_foldmarker(optset_T *args)
char *p = vim_strchr(*varp, ',');
if (p == NULL) {
- return N_("E536: comma required");
+ return e_comma_required;
}
if (p == *varp || p[1] == NUL) {