Hirohito Higashi wrote:
> Hi Bram and list,
>
> 2016-8-10(Wed) 11:37:24 UTC+9 h_east:
> > Hi Bram,
> >
> > 2016-8-10(Wed) 5:58:46 UTC+9 Bram Moolenaar:
> > > Hirohito Higashi wrote:
> > >
> > > > How to reproduce:
> > > > $ cd src
> > > > $ make distclean
> > > > $ ./configure --enable-fail-if-missing --enable-gui=gnome2
> > > > $ make
> > > > $ make test_startup
> > > >
> > > > Get stuck with the following output in terminal.
> > > > -------8<--------
> > > > VIMRUNTIME=../../runtime; export VIMRUNTIME; ../vim -f -u unix.vim -U
> > > > NONE --noplugin --not-a-term -U NONE -S runtest.vim test_startup.vim
> > > > 3 files to edit
> > > > 2 files to edit
> > > > 4 files to edit
> > > > E233: cannot open display
> > > > Press ENTER or type command to continue
> > > > -------8<--------
> > > >
> > > > Problem occurs in this environment.
> > > >
> > > > has('gui') && !has('gui_running')
> > > >
> > > >
> > > > I wrote a patch.
> > > > include this please!
> > >
> > > Is this with Gnome? I did see the test fail with Gnome, because it has
> > > a second --version line. I'll fix that.
> > >
> > > I don't understand your condition, it appears to skip the test when not
> > > build with the GUI. For me the test is not needed.
> >
> > I use fedora 23 that remote logined from Windows via PuTTY.
> >
> > $ env | grep TERM
> > TERM=putty-256color <-- Same behavior of xterm-256color.
> >
> > $ env | grep DISPLAY
> > $ <-- undefined
> >
> >
> > My reported issue is not resolved in patch 7.4.2190
>
> I got it.
> When the following conditions are all true, `vim --help` does not exit after
> outputting the help.
> - Configured with GTK
> - Start CUI Vim with arg `--help` on terminal emulator.
> e.g. PuTTY for Windows
> not have GUI i.e. env `$DISPLAY` undefined.
>
> Because `gnome_program_init()` is not called.
>
> I wrote a patch.
> Please check an attached one.
Thanks, I'll include this.
--
Never enter the boss's office unless it's absolutely necessary. Every boss
saves one corner of the desk for useless assignments that are doled out like
Halloween candy to each visitor.
(Scott Adams - The Dilbert principle)
/// Bram Moolenaar -- [email protected] -- 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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.