Mercurial > vim
diff src/main.c @ 12837:963cdeb42c41 v8.0.1295
patch 8.0.1295: cannot automatically get a server name in a terminal
commit https://github.com/vim/vim/commit/e42a6d250907e278707753d7d1ba91ffc2471db0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 12 19:21:51 2017 +0100
patch 8.0.1295: cannot automatically get a server name in a terminal
Problem: Cannot automatically get a server name in a terminal.
Solution: Add the --enable-autoservername flag to configure. (Cimbali,
closes #2317)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 12 Nov 2017 19:30:05 +0100 |
parents | 351cf7c67bbe |
children | 1293c33ff452 |
line wrap: on
line diff
--- a/src/main.c +++ b/src/main.c @@ -3673,12 +3673,18 @@ prepare_server(mparm_T *parmp) /* * Register for remote command execution with :serversend and --remote * unless there was a -X or a --servername '' on the command line. - * Only register nongui-vim's with an explicit --servername argument. + * Only register nongui-vim's with an explicit --servername argument, + * or when compiling with autoservername. * When running as root --servername is also required. */ if (X_DISPLAY != NULL && parmp->servername != NULL && ( -# ifdef FEAT_GUI - (gui.in_use +# if defined(FEAT_AUTOSERVERNAME) || defined(FEAT_GUI) + ( +# if defined(FEAT_AUTOSERVERNAME) + 1 +# else + gui.in_use +# endif # ifdef UNIX && getuid() != ROOT_UID # endif