aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/doc/builtin.txt7
-rw-r--r--runtime/lua/vim/_meta/vimfn.lua7
-rw-r--r--src/nvim/eval.lua8
-rw-r--r--src/nvim/strings.c2
4 files changed, 23 insertions, 1 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 6de7166f83..a6c043045d 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -5307,6 +5307,13 @@ printf({fmt}, {expr1} ...) *printf()*
< E1505: Invalid format specifier:
%1$d at width %2$d is: %01$*2$.3$d
+ *E1507*
+ This internal error indicates that the logic to
+ parse a positional format error ran into a problem
+ that couldn't be otherwise reported. Please file a
+ bug against vim if you run into this, copying the
+ exact format string and parameters that were used.
+
prompt_getprompt({buf}) *prompt_getprompt()*
Returns the effective prompt text for buffer {buf}. {buf} can
be a buffer name or number. See |prompt-buffer|.
diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua
index 5a3a5f3890..bc81322a76 100644
--- a/runtime/lua/vim/_meta/vimfn.lua
+++ b/runtime/lua/vim/_meta/vimfn.lua
@@ -6290,6 +6290,13 @@ function vim.fn.prevnonblank(lnum) end
--- < E1505: Invalid format specifier:
--- %1$d at width %2$d is: %01$*2$.3$d
---
+--- *E1507*
+--- This internal error indicates that the logic to
+--- parse a positional format error ran into a problem
+--- that couldn't be otherwise reported. Please file a
+--- bug against vim if you run into this, copying the
+--- exact format string and parameters that were used.
+---
--- @param fmt any
--- @param expr1? any
--- @return any
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua
index 28fb9c6a5c..951dd2adbb 100644
--- a/src/nvim/eval.lua
+++ b/src/nvim/eval.lua
@@ -7572,6 +7572,14 @@ M.funcs = {
echo printf("%1$d at width %2$d is: %01$*2$.3$d", 1, 2)
< E1505: Invalid format specifier:
%1$d at width %2$d is: %01$*2$.3$d
+
+ *E1507*
+ This internal error indicates that the logic to
+ parse a positional format error ran into a problem
+ that couldn't be otherwise reported. Please file a
+ bug against vim if you run into this, copying the
+ exact format string and parameters that were used.
+
]=],
name = 'printf',
params = { { 'fmt', 'any' }, { 'expr1', 'any' } },
diff --git a/src/nvim/strings.c b/src/nvim/strings.c
index 0d307a760f..7ba11ed8e5 100644
--- a/src/nvim/strings.c
+++ b/src/nvim/strings.c
@@ -46,7 +46,7 @@ static const char e_positional_arg_num_type_inconsistent_str_str[]
static const char e_invalid_format_specifier_str[]
= N_("E1505: Invalid format specifier: %s");
static const char e_aptypes_is_null_nr_str[]
- = "E1520: Internal error: ap_types or ap_types[idx] is NULL: %d: %s";
+ = "E1507: Internal error: ap_types or ap_types[idx] is NULL: %d: %s";
static const char typename_unknown[] = N_("unknown");
static const char typename_int[] = N_("int");