Kazunobu Kuriyama wrote:
> > > 2017-03-02 2:30 GMT+09:00 Bram Moolenaar <[email protected]>:
> > >
> > > > Patch 8.0.0395 (after 8.0.0392)
> > > > Problem: Testing the + register fails with Motif.
> > > > Solution: Also ignore the "failed to create input context" error in
> > the
> > > > second gvim. Don't use msg() when it would result in a
> > dialog.
> > > > Files: src/message.c, src/testdir/test_gui.vim,
> > > > src/testdir/setup_gui.vim
> > >
> > > I confirm that this worked fine for the both GUIs. Thank you.
> >
> > I still see the quoteplus test fail sometimes. Not sure when it
> > happens, might be a race condition.
> >
>
> I guess this happens when the clipboard fails to get synchronized with the
> quoteplus register before the core part of the test starts. If this is the
> case, the attached patch could fix the problem.
>
> The idea is to wrap "let @+ = test_call" by the loop asking the clipboard
> for its current content in order to make sure that it has already had the
> same string as test_call. The loop consists of five trials with an
> interval of 200 milliseconds.
I wonder why you do this:
new
norm "+p
let result = getline(1)
bwipe!
instead of:
let result = @+
Anyway, since you do this at the start:
let @+ = a:str
I would think the + register always has the contents.
Did you ever see something different?
I would think that setting the clipboard in the first gvim instance
always works, it's the second one that I guess would fail, if it exits
in a way that it doesn't fill the clipboard. This is supposed to happen
in x11_export_final_selection(). Not sure when it would fail.
--
The users that I support would double-click on a landmine to find out
what happens. -- A system administrator
/// 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.