Ivan Krasilnikov | 1 Dec 2011 15:46
Picon

Bug: vim --help prints error message at the end of help

vim --help after patch 7.3.315 in gtk-enabled vim started to print the
following message at the end of help:

E852: The child process failed to start the GUI
(or "E233: cannot open display" if launched not in X11)
Press ENTER or type command to continue

And after pressing Enter, it doesn't quit but drops me into editor window.

--

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Ivan Krasilnikov | 1 Dec 2011 16:20
Picon

Re: Bug: vim --help prints error message at the end of help

Proposed patch - setting gui.dofork to FALSE at the end of usage(),
where it says "Gnome gives extra messages for --help if we continue",
seems to solve this problem,

--

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Bram Moolenaar | 1 Dec 2011 20:59
Picon

Re: Bug: vim --help prints error message at the end of help


Ivan Krasilnikov wrote:

> Proposed patch - setting gui.dofork to FALSE at the end of usage(),
> where it says "Gnome gives extra messages for --help if we continue",
> seems to solve this problem,

Do you mean this:

*** ../vim-7.3.363/src/main.c	2011-10-04 16:43:49.000000000 +0200
--- src/main.c	2011-12-01 20:14:40.000000000 +0100
***************
*** 3294,3300 ****
--- 3294,3303 ----
  #ifdef FEAT_GUI_GNOME
      /* Gnome gives extra messages for --help if we continue, but not for -h. */
      if (gui.starting)
+     {
  	mch_msg("\n");
+ 	gui.dofork = FALSE;
+     }
      else
  #endif
  	mch_exit(0);

--

-- 
Your fault: core dumped

 /// Bram Moolenaar -- Bram <at> Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
(Continue reading)

Ivan Krasilnikov | 1 Dec 2011 21:18
Picon

Re: Bug: vim --help prints error message at the end of help

On Thu, Dec 1, 2011 at 20:59, Bram Moolenaar <Bram <at> moolenaar.net> wrote:
> Do you mean this:
>
> *** ../vim-7.3.363/src/main.c   2011-10-04 16:43:49.000000000 +0200
> --- src/main.c  2011-12-01 20:14:40.000000000 +0100
> ***************
> *** 3294,3300 ****
> --- 3294,3303 ----
>  #ifdef FEAT_GUI_GNOME
>      /* Gnome gives extra messages for --help if we continue, but not for -h. */
>      if (gui.starting)
> +     {
>        mch_msg("\n");
> +       gui.dofork = FALSE;
> +     }
>      else
>  #endif
>        mch_exit(0);
>

Yes.

--

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


Gmane