diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-02-11 14:29:49 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-02-11 14:29:49 +0100 |
commit | a7e18d237f817637815f0de44b08df1e0ca0f4f9 (patch) | |
tree | cad88062207343bb09054f95c80b327809d0d8a7 /src/testdir/test_jumplist.vim | |
parent | 4f50588ba336e7f086a72c53f5688c2494fc34b3 (diff) | |
download | vim-git-a7e18d237f817637815f0de44b08df1e0ca0f4f9.tar.gz |
patch 8.0.1498: getjumplist() returns duplicate entriesv8.0.1498
Problem: Getjumplist() returns duplicate entries. (lacygoill)
Solution: Call cleanup_jumplist(). (Yegappan Lakshmanan)
Diffstat (limited to 'src/testdir/test_jumplist.vim')
-rw-r--r-- | src/testdir/test_jumplist.vim | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/testdir/test_jumplist.vim b/src/testdir/test_jumplist.vim index 7079d21aa..02dbd7619 100644 --- a/src/testdir/test_jumplist.vim +++ b/src/testdir/test_jumplist.vim @@ -30,7 +30,6 @@ func Test_getjumplist() call assert_equal([[ \ {'lnum': 1, 'bufnr': bnr, 'col': 0, 'coladd': 0}, - \ {'lnum': 1, 'bufnr': bnr, 'col': 0, 'coladd': 0}, \ {'lnum': 50, 'bufnr': bnr, 'col': 0, 'coladd': 0}, \ {'lnum': 100, 'bufnr': bnr, 'col': 0, 'coladd': 0}], 4], \ getjumplist()) @@ -48,17 +47,16 @@ func Test_getjumplist() call assert_equal([[ \ {'lnum': 1, 'bufnr': bnr, 'col': 0, 'coladd': 0}, \ {'lnum': 50, 'bufnr': bnr, 'col': 0, 'coladd': 0}, - \ {'lnum': 100, 'bufnr': bnr, 'col': 0, 'coladd': 0}, \ {'lnum': 5, 'bufnr': bnr, 'col': 0, 'coladd': 0}, \ {'lnum': 100, 'bufnr': bnr, 'col': 0, 'coladd': 0}], 5], \ getjumplist()) let l = getjumplist() call test_garbagecollect_now() - call assert_equal(5, l[1]) + call assert_equal(4, l[1]) clearjumps call test_garbagecollect_now() - call assert_equal(5, l[1]) + call assert_equal(4, l[1]) call delete("Xtest") endfunc |