summaryrefslogtreecommitdiffstats
path: root/src/getchar.c
diff options
context:
space:
mode:
authorRestorerZ <restorer@mail2k.ru>2023-05-31 17:12:14 +0100
committerBram Moolenaar <Bram@vim.org>2023-05-31 17:12:14 +0100
commit68ebcee0237d927dd5386073499162389d4d708a (patch)
treece198c27bc9d743c31fed87bb5c1076b4445fcf8 /src/getchar.c
parent3c240f608c38ef1af67e112e0e689751c003f946 (diff)
patch 9.0.1594: some internal error messages are translatedv9.0.1594
Problem: Some internal error messages are translated. Solution: Consistently do not translate internal error messages. (closes #12459)
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/getchar.c b/src/getchar.c
index 1c3cdb19dc..c5ccdf2e0e 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -214,7 +214,7 @@ add_buff(
}
else if (buf->bh_curr == NULL) // buffer has already been read
{
- iemsg(_(e_add_to_internal_buffer_that_was_already_read_from));
+ iemsg(e_add_to_internal_buffer_that_was_already_read_from);
return;
}
else if (buf->bh_index != 0)
@@ -1645,8 +1645,8 @@ updatescript(int c)
}
/*
- * Convert "c" plus "modifiers" to merge the effect of modifyOtherKeys into the
- * character. Also for when the Kitty key protocol is used.
+ * Convert "c_arg" plus "modifiers" to merge the effect of modifyOtherKeys into
+ * the character. Also for when the Kitty key protocol is used.
*/
int
merge_modifyOtherKeys(int c_arg, int *modifiers)
@@ -2480,14 +2480,14 @@ check_simplify_modifier(int max_offset)
{
if (put_string_in_typebuf(offset, 4, new_string, len,
NULL, 0, NULL) == FAIL)
- return -1;
+ return -1;
}
else
{
tp[2] = modifier;
if (put_string_in_typebuf(offset + 3, 1, new_string, len,
NULL, 0, NULL) == FAIL)
- return -1;
+ return -1;
}
return len;
}
@@ -2798,9 +2798,9 @@ handle_mapping(
if (no_mapping == 0 || allow_keys != 0)
{
if ((typebuf.tb_maplen == 0
- || (p_remap && typebuf.tb_noremap[
+ || (p_remap && typebuf.tb_noremap[
typebuf.tb_off] == RM_YES))
- && !*timedout)
+ && !*timedout)
keylen = check_termcode(max_mlen + 1, NULL, 0, NULL);
else
keylen = 0;
@@ -3282,7 +3282,7 @@ vgetorpeek(int advance)
* get a character: 2. from the typeahead buffer
*/
c = typebuf.tb_buf[typebuf.tb_off];
- if (advance) // remove chars from tb_buf
+ if (advance) // remove chars from typebuf
{
cmd_silent = (typebuf.tb_silent > 0);
if (typebuf.tb_maplen > 0)
@@ -3294,8 +3294,7 @@ vgetorpeek(int advance)
gotchars(typebuf.tb_buf
+ typebuf.tb_off, 1);
}
- KeyNoremap = typebuf.tb_noremap[
- typebuf.tb_off];
+ KeyNoremap = typebuf.tb_noremap[typebuf.tb_off];
del_typebuf(1, 0);
}
break; // got character, break the for loop