diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-27 19:00:24 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-27 19:00:24 +0100 |
commit | e4862a0fe62261754daf476866ef2aa8586b716c (patch) | |
tree | 6c4e1bc963b5063852d6319ff0b4b013569f6593 /src/testdir/test_clientserver.vim | |
parent | 179eb567b15a2ed5cf25b45d95d06c7a729d50bc (diff) |
patch 8.2.2231: when "--remote file" is used "file" is not reloadedv8.2.2231
Problem: When "--remote file" is used "file" is not reloaded.
Solution: When a :drop command is used for a file that is already displayed
in a window and it has not been changed, check if it needs to be
reloaded. (closes #7560)
Diffstat (limited to 'src/testdir/test_clientserver.vim')
-rw-r--r-- | src/testdir/test_clientserver.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_clientserver.vim b/src/testdir/test_clientserver.vim index 6043184211..bfad1b28d3 100644 --- a/src/testdir/test_clientserver.vim +++ b/src/testdir/test_clientserver.vim @@ -73,6 +73,15 @@ func Test_client_server() call assert_fails('call remote_send("XXX", ":let testvar = ''yes''\<CR>")', 'E241:') + call writefile(['one'], 'Xclientfile') + let cmd = GetVimProg() .. ' --servername ' .. name .. ' --remote Xclientfile' + call system(cmd) + call WaitForAssert({-> assert_equal('Xclientfile', remote_expr(name, "bufname()", "", 2))}) + call WaitForAssert({-> assert_equal('one', remote_expr(name, "getline(1)", "", 2))}) + call writefile(['one', 'two'], 'Xclientfile') + call system(cmd) + call WaitForAssert({-> assert_equal('two', remote_expr(name, "getline(2)", "", 2))}) + " Expression evaluated locally. if v:servername == '' eval 'MYSELF'->remote_startserver() |