]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1219: Strange error with wrong type for matchfuzzy() "camelcase" v9.1.1219
authorzeertzjq <zeertzjq@outlook.com>
Tue, 18 Mar 2025 19:28:00 +0000 (20:28 +0100)
committerChristian Brabandt <cb@256bit.org>
Tue, 18 Mar 2025 19:28:00 +0000 (20:28 +0100)
commitc4815c157b27923001e44bfd241fb540bf1fb518
tree9685b0f55676eda593304ab8a0992b6bdc407c53
parentc00729824d6d335994252a462cc78be52b76f85b
patch 9.1.1219: Strange error with wrong type for matchfuzzy() "camelcase"

Problem:  Strange error with type for matchfuzzy() "camelcase".
Solution: Show the error "Invalid value for argument camelcase" instead
          of "Invalid argument: camelcase" (zeertzjq).

Note that using tv_get_string() will lead to confusion, as when the
value cannot be converted to a string tv_get_string() will also give an
error about that, but "camelcase" takes a boolean, not a string.  Also
don't use tv_get_string() for the "limit" argument above.

closes: #16926

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/builtin.txt
src/search.c
src/testdir/test_matchfuzzy.vim
src/version.c