Loading ...
Sorry, an error occurred while loading the content.

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

Expand Messages
  • Bram Moolenaar
    ... Do you mean this: ... *************** ... #ifdef FEAT_GUI_GNOME /* Gnome gives extra messages for --help if we continue, but not for -h. */ if
    Message 1 of 4 , Dec 1, 2011
    View Source
    • 0 Attachment
      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@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ an exciting new programming language -- http://www.Zimbu.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      --
      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
      ... 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,
      Message 2 of 4 , Dec 1, 2011
      View Source
      • 0 Attachment
        On Thu, Dec 1, 2011 at 20:59, Bram Moolenaar <Bram@...> 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
      Your message has been successfully submitted and would be delivered to recipients shortly.