mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 08:48:16 +00:00
vim-patch:8.2.4890: inconsistent capitalization in error messages
Problem: Inconsistent capitalization in error messages.
Solution: Make capitalization consistent. (Doug Kearns)
cf030578b2
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -26,6 +26,8 @@
|
||||
# include "cursor_shape.c.generated.h"
|
||||
#endif
|
||||
|
||||
static const char e_digit_expected[] = N_("E548: Digit expected");
|
||||
|
||||
/// Handling of cursor and mouse pointer shapes in various modes.
|
||||
cursorentry_T shape_table[SHAPE_IDX_COUNT] = {
|
||||
// Values are set by 'guicursor' and 'mouseshape'.
|
||||
@@ -101,7 +103,7 @@ Array mode_style_array(Arena *arena)
|
||||
/// @param what SHAPE_CURSOR or SHAPE_MOUSE ('mouseshape')
|
||||
///
|
||||
/// @returns error message for an illegal option, NULL otherwise.
|
||||
char *parse_shape_opt(int what)
|
||||
const char *parse_shape_opt(int what)
|
||||
{
|
||||
char *colonp;
|
||||
char *commap;
|
||||
@@ -194,7 +196,7 @@ char *parse_shape_opt(int what)
|
||||
if (len != 0) {
|
||||
p += len;
|
||||
if (!ascii_isdigit(*p)) {
|
||||
return N_("E548: digit expected");
|
||||
return e_digit_expected;
|
||||
}
|
||||
int n = getdigits_int(&p, false, 0);
|
||||
if (len == 3) { // "ver" or "hor"
|
||||
|
Reference in New Issue
Block a user