1
0
forked from aniani/vim

patch 9.0.1522: some functions give two error messages

Problem:    Some functions give two error messages.
Solution:   Do not give a second error message. (closes #12352)
This commit is contained in:
Bram Moolenaar
2023-05-07 18:53:49 +01:00
parent 30b6d6104c
commit e4098457ab
4 changed files with 21 additions and 6 deletions

View File

@@ -160,6 +160,8 @@ func Test_strcharpart()
call assert_equal('edit', "editor"[-10 : 3])
END
call v9.CheckLegacyAndVim9Success(lines)
call assert_fails('echo strcharpart("", 0, 0, {})', ['E728:', 'E728:'])
endfunc
func Test_getreg_empty_list()