mirror of
https://github.com/vim/vim.git
synced 2025-11-15 23:14:06 -05:00
patch 9.1.1651: Cannot use clientserver over socket
Problem: Cannot use clientserver over Unix domain socket Solution: Implement socketserver functionality (Foxe Chen). fixes: #3509 closes: #17839 Signed-off-by: Foxe Chen <chen.foxe@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
31170af24a
commit
96b2154b73
@@ -10039,9 +10039,29 @@ eval_vars(
|
||||
|
||||
#ifdef FEAT_CLIENTSERVER
|
||||
case SPEC_CLIENT: // Source of last submitted input
|
||||
#ifdef MSWIN
|
||||
sprintf((char *)strbuf, PRINTF_HEX_LONG_U,
|
||||
(long_u)clientWindow);
|
||||
result = strbuf;
|
||||
#else
|
||||
# ifdef FEAT_SOCKETSERVER
|
||||
if (clientserver_method == CLIENTSERVER_METHOD_SOCKET)
|
||||
{
|
||||
if (client_socket == NULL)
|
||||
result = (char_u *)"";
|
||||
else
|
||||
result = client_socket;
|
||||
}
|
||||
# endif
|
||||
# ifdef FEAT_X11
|
||||
if (clientserver_method == CLIENTSERVER_METHOD_X11)
|
||||
{
|
||||
sprintf((char *)strbuf, PRINTF_HEX_LONG_U,
|
||||
(long_u)clientWindow);
|
||||
result = strbuf;
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
break;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user