# HG changeset patch # User Bram Moolenaar # Date 1564263004 -7200 # Node ID 24d7a7d27471295c2a0aa29e8fbca4aaebb87749 # Parent 3a6150469ecb5d6fc7eb5c0d37cedc2770cd23f6 patch 8.1.1764: ":browse oldfiles" is not tested commit https://github.com/vim/vim/commit/5328cb8986d2620f45b41acf28778f8ce2f8cac1 Author: Bram Moolenaar Date: Sat Jul 27 23:27:51 2019 +0200 patch 8.1.1764: ":browse oldfiles" is not tested Problem: ":browse oldfiles" is not tested. Solution: Add a test. diff --git a/src/testdir/test_viminfo.vim b/src/testdir/test_viminfo.vim --- a/src/testdir/test_viminfo.vim +++ b/src/testdir/test_viminfo.vim @@ -537,4 +537,10 @@ func Test_viminfo_oldfiles() call assert_equal(['1: /tmp/file_one.txt', '2: /tmp/file_two.txt', '3: /tmp/another.txt'], filter(split(execute('oldfiles'), "\n"), {i, v -> v =~ '/tmp/'})) call assert_equal(['1: /tmp/file_one.txt', '2: /tmp/file_two.txt'], filter(split(execute('filter file_ oldfiles'), "\n"), {i, v -> v =~ '/tmp/'})) call assert_equal(['3: /tmp/another.txt'], filter(split(execute('filter /another/ oldfiles'), "\n"), {i, v -> v =~ '/tmp/'})) + + new + call feedkeys("3\", 't') + browse oldfiles + call assert_equal("/tmp/another.txt", expand("%")) + bwipe endfunc diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -778,6 +778,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1764, +/**/ 1763, /**/ 1762,