diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-18 18:10:13 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-18 18:10:13 +0100 |
commit | 7416f3e73ab2c4e7ae3adc2ff6e70234f7d40d2e (patch) | |
tree | 7bc5f55c1b3a71dee7a0fe23ca77f51262bff08e /src/os_mswin.c | |
parent | 15bf76d40be1f1622ff5cc16596c308e76e2ca94 (diff) | |
download | vim-git-7416f3e73ab2c4e7ae3adc2ff6e70234f7d40d2e.tar.gz |
patch 8.0.0475: not enough testing for the client-server featurev8.0.0475
Problem: Not enough testing for the client-server feature.
Solution: Add more tests. Add the remote_startserver() function. Fix that
a locally evaluated expression uses function-local variables.
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r-- | src/os_mswin.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c index 166305298..cfa208493 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -2409,6 +2409,10 @@ serverSendToVim( int retcode = 0; char_u altname_buf[MAX_PATH]; + /* Execute locally if no display or target is ourselves */ + if (serverName != NULL && STRICMP(name, serverName) == 0) + return sendToLocalVim(cmd, asExpr, result); + /* If the server name does not end in a digit then we look for an * alternate name. e.g. when "name" is GVIM the we may find GVIM2. */ if (STRLEN(name) > 1 && !vim_isdigit(name[STRLEN(name) - 1])) |