To: vim_dev@googlegroups.com Subject: Patch 8.2.2240 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2240 Problem: Clientserver test fails if full path is used. Solution: Ignore the path preceding the file name. Files: src/testdir/test_clientserver.vim *** ../vim-8.2.2239/src/testdir/test_clientserver.vim 2020-12-27 19:00:20.706479331 +0100 --- src/testdir/test_clientserver.vim 2020-12-28 21:14:00.221176090 +0100 *************** *** 134,152 **** " Edit multiple files using --remote call system(cmd .. ' --remote Xfile1 Xfile2 Xfile3') ! call assert_equal("Xfile1\nXfile2\nXfile3\n", remote_expr(name, 'argv()')) eval name->remote_send(":%bw!\") " Edit files in separate tab pages call system(cmd .. ' --remote-tab Xfile1 Xfile2 Xfile3') call WaitForAssert({-> assert_equal('3', remote_expr(name, 'tabpagenr("$")'))}) ! call assert_equal('Xfile2', remote_expr(name, 'bufname(tabpagebuflist(2)[0])')) eval name->remote_send(":%bw!\") " Edit a file using --remote-wait eval name->remote_send(":source $VIMRUNTIME/plugin/rrhelper.vim\") call system(cmd .. ' --remote-wait +enew Xfile1') ! call assert_equal("Xfile1", remote_expr(name, 'bufname("#")')) eval name->remote_send(":%bw!\") " Edit files using --remote-tab-wait --- 134,152 ---- " Edit multiple files using --remote call system(cmd .. ' --remote Xfile1 Xfile2 Xfile3') ! call assert_match(".*Xfile1\n.*Xfile2\n.*Xfile3\n", remote_expr(name, 'argv()')) eval name->remote_send(":%bw!\") " Edit files in separate tab pages call system(cmd .. ' --remote-tab Xfile1 Xfile2 Xfile3') call WaitForAssert({-> assert_equal('3', remote_expr(name, 'tabpagenr("$")'))}) ! call assert_match('.*\remote_send(":%bw!\") " Edit a file using --remote-wait eval name->remote_send(":source $VIMRUNTIME/plugin/rrhelper.vim\") call system(cmd .. ' --remote-wait +enew Xfile1') ! call assert_match('.*\remote_send(":%bw!\") " Edit files using --remote-tab-wait *** ../vim-8.2.2239/src/version.c 2020-12-28 20:53:17.499051882 +0100 --- src/version.c 2020-12-28 21:14:57.916938888 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2240, /**/ -- On the other hand, you have different fingers. -- Steven Wright /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///