Skip to content

Instantly share code, notes, and snippets.

@nocd5
Created July 28, 2017 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nocd5/e052699f8eb67fbbce43edf81454f879 to your computer and use it in GitHub Desktop.
Save nocd5/e052699f8eb67fbbce43edf81454f879 to your computer and use it in GitHub Desktop.
`gvim.exe --serverlist`や`gvim.exe --remote-expr "1+1"`などで表示されるダイアログ
diff --git a/src/main.c b/src/main.c
index 268c256..a7f104a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3934,6 +3934,9 @@ cmdsrv_main(
mainerr_arg_missing((char_u *)argv[i]);
# ifdef WIN32
/* Win32 always works? */
+# ifdef FEAT_GUI_W32
+ gui.starting = TRUE;
+# endif
if (serverSendToVim(sname, (char_u *)argv[i + 1],
&res, NULL, 1, 0, FALSE) < 0)
# else
@@ -3943,6 +3946,9 @@ cmdsrv_main(
&res, NULL, 1, 0, 1, FALSE) < 0)
# endif
{
+# ifdef FEAT_GUI_W32
+ gui.starting = FALSE;
+# endif
if (res != NULL && *res != NUL)
{
/* Output error from remote */
@@ -3957,6 +3963,9 @@ cmdsrv_main(
{
# ifdef WIN32
/* Win32 always works? */
+# ifdef FEAT_GUI_W32
+ gui.starting = TRUE;
+# endif
res = serverGetVimNames();
# else
if (xterm_dpy != NULL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment