Mercurial > vim
comparison src/testdir/test_tabpage.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 | 67fbe280a502 |
children | 116c7bd5e980 |
comparison
equal
deleted
inserted
replaced
20157:ada5332a22b7 | 20158:94f05de75e9f |
---|---|
128 tabmove 1 | 128 tabmove 1 |
129 call assert_equal(2, tabpagenr()) | 129 call assert_equal(2, tabpagenr()) |
130 1tabmove | 130 1tabmove |
131 call assert_equal(2, tabpagenr()) | 131 call assert_equal(2, tabpagenr()) |
132 | 132 |
133 call assert_fails('let t = tabpagenr("#")', 'E15:') | |
134 call assert_equal(0, tabpagewinnr(-1)) | |
133 call assert_fails("99tabmove", 'E16:') | 135 call assert_fails("99tabmove", 'E16:') |
134 call assert_fails("+99tabmove", 'E16:') | 136 call assert_fails("+99tabmove", 'E16:') |
135 call assert_fails("-99tabmove", 'E16:') | 137 call assert_fails("-99tabmove", 'E16:') |
136 call assert_fails("tabmove foo", 'E474:') | 138 call assert_fails("tabmove foo", 'E474:') |
137 call assert_fails("tabmove 99", 'E474:') | 139 call assert_fails("tabmove 99", 'E474:') |