From 8bb0878013a4507620201fa5aceb4c18e413bebe Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 6 Oct 2023 07:21:40 +0800 Subject: vim-patch:9.0.1990: strange error number Problem: strange error number Solution: change error number, add doc tag for E1507 closes: vim/vim#13270 https://github.com/vim/vim/commit/ea746f9e862092aef3d4e95c64d116759b9fabe0 Co-authored-by: Christ van Willegen --- src/nvim/eval.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/nvim/eval.lua') 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' } }, -- cgit