]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1722: wrong error messages when passing wrong types to count() v9.0.1722
authorzeertzjq <zeertzjq@outlook.com>
Thu, 17 Aug 2023 20:10:40 +0000 (22:10 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 17 Aug 2023 20:11:16 +0000 (22:11 +0200)
commit4f389e7c0fe7dfeccfa512a72fa36f9028d57159
tree04951ce74f0aea2af302e90bebe813fc81bf08ca
parent4112acae0816e3f64c082b1e773dd5f4a100685e
patch 9.0.1722: wrong error messages when passing wrong types to count()

Problem: wrong error messages when passing wrong types to count()
Solution: fix it

This fixes two problems:
1. When passing wrong type to {ic} argument of count(), two error
   messages are given, the second of which is misleading.
2. When passing wrong type to {comp} argument of count(), the error
   message doesn't mention that {comp} may be a String.

closes: #12825

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
src/errors.h
src/list.c
src/testdir/test_functions.vim
src/version.c