patch 8.2.0633: crash when using null partial in filter()
Problem: Crash when using null partial in filter().
Solution: Fix crash. Add more tests. (Yegappan Lakshmanan, closes #5976)
diff --git a/src/testdir/test_functions.vim b/src/testdir/test_functions.vim
index dbd0804..029ea5b 100644
--- a/src/testdir/test_functions.vim
+++ b/src/testdir/test_functions.vim
@@ -1239,6 +1239,8 @@
call assert_equal(0, col([2, '$']))
call assert_equal(0, col([1, 100]))
call assert_equal(0, col([1]))
+ call assert_equal(0, col(test_null_list()))
+ call assert_fails('let c = col({})', 'E731:')
" test for getting the visual start column
func T()