0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.0.0475: not enough testing for the client-server feature

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.
This commit is contained in:
Bram Moolenaar
2017-03-18 18:10:13 +01:00
parent 15bf76d40b
commit 7416f3e73a
7 changed files with 73 additions and 22 deletions

View File

@@ -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]))