Christian Brabandt wrote:
> On Fr, 12 Sep 2014, Jason Pleau wrote:
>
> > Le jeudi 11 septembre 2014 14:23:46 UTC-4, Christian Brabandt a écrit:
> > > Interesting. I can reproduce the issue. I can't see how patch
> > > 7.4.396 can cause this. However I noticed a couple of things:
> > >
> > > vim -u <(echo set clipboard=unnamedplus) -N (paste - E353)
> > >
> > > vim -u <(echo set clipboard=unnamedplus) -N --noplugin (paste - E353)
> > >
> > > vim -u NONE -N -c 'set clipboard=unnamedplus' (paste works)
> > >
> > > vim -u <(echo set clipboard=unnamedplus ei=VimEnter) -N (paste works)
> > >
> > > vim -u <(echo ':au VimEnter * :set clipboard=unnamedplus' ) -N (paste -
> > > E353)
> > >
> > > I am not sure how to debug this further. When running a debug built
> > > with gdb, it always pastes correctly.
> > >
> >
> > I have worked a bit on this tonight, and another bisect revealed 396
> > as the root of the issue.
> >
> > I don't have much knowledge of vim's source code.. however please see
> > the attached patch. Removing the start_global_changes() and
> > end_global_changes() in src/ex_cmds2.c fixes the issue for me. (note:
> > I haven't tested anything else except the issue at hand, with this
> > patch)
>
> Your patch basically just disables, what Patch 7.4.396 did. The purpose
> of this patch was to disable accessing the system clipboard only on very
> specific occasions, e.g. when using :bufdo, :g, :folddo etc. So that Vim
> does seem to hang, by accessing the system clipboard many times in short
> terms (which it seem to do on Windows). This has nothing to do with
> startup and I don't see, how this can affect startup.
>
> Plus, this seems to be highly dependent on the system as accessing the
> clipboard works, when running under gdb. I am at loss, how that can have
> an impact here. Perhaps Bram has an idea.
Not really. Perhaps end_global_changes() clears the clipboard in a
specific sequence of events? There might be a race condition, causing
it to work when running in gdb. Or with/without using the optimizer?
--
hundred-and-one symptoms of being an internet addict:
126. You brag to all of your friends about your date Saturday night...but
you don't tell them it was only in a chat room.
/// 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.