Mercurial > vim
comparison src/testdir/test_cursor_func.vim @ 20158:94f05de75e9f v8.2.0634
patch 8.2.0634: crash with null partial and blob
Commit: https://github.com/vim/vim/commit/92b83ccfda7a1d654ccaaf161a9c8a8e01fbcf76
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 25 15:24:44 2020 +0200
patch 8.2.0634: crash with null partial and blob
Problem: Crash with null partial and blob.
Solution: Check for NULL pointer. Add more tests. (Yegappan Lakshmanan,
closes #5984)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 25 Apr 2020 15:30:04 +0200 |
parents | e82996ad131f |
children | 2c3e7a6bd6c6 |
comparison
equal
deleted
inserted
replaced
20157:ada5332a22b7 | 20158:94f05de75e9f |
---|---|
1 " Tests for cursor(). | 1 " Tests for cursor(). |
2 | 2 |
3 func Test_wrong_arguments() | 3 func Test_wrong_arguments() |
4 call assert_fails('call cursor(1. 3)', 'E474:') | 4 call assert_fails('call cursor(1. 3)', 'E474:') |
5 call assert_fails('call cursor(test_null_list())', 'E474:') | |
5 endfunc | 6 endfunc |
6 | 7 |
7 func Test_move_cursor() | 8 func Test_move_cursor() |
8 new | 9 new |
9 call setline(1, ['aaa', 'bbb', 'ccc', 'ddd']) | 10 call setline(1, ['aaa', 'bbb', 'ccc', 'ddd']) |