Thank you very much. I can already confirm that issue 1 is fixed with patch.
Gilles. 2017-10-15 22:08 GMT+02:00 Bram Moolenaar <[email protected]>: > > Gilles Moris wrote: > > > Can you confirm those are issues: the autoselectplus option of > > clipboard is also setting the "* register, and pasting over a visually > > selected line does not replace its content. > > > > Workflow to reproduce: > > > > Using konsole or xterm as terminal on CentOS7. TERM=xterm-256color. Huge > build of VIM. > > :version > > VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Oct 14 2017 22:22:59) > > Included patches: 1-1193 > > [...] > > > $ echo yanked line > testfile.txt > > $ echo overwrite line >> testfile.txt > > > > Issue 1: "* is also set when clipboard=autoselectplus > > > > $ rm -f ~/.viminfo ; vim -N -u NONE testfile.txt > > :set clipboard=autoselectplus > > :reg > > --- Registers --- > > "* empty > > "+ empty > > ": set clipboard=autoselectplus > > "% testfile.txt > > > > > > V<Esc> > > > > :reg > > --- Registers --- > > "* yanked line^J > > "+ yanked line^J > > ": reg > > "% testfile.txt > > :quit > > > > Expected result: only "+ is changed, but "* is also updated > > > > Issue 2: Pasting over a visually selected line does not overwrite it > when autoselectplus and unnamedplus are set. > > > > $ rm -f ~/.viminfo ; vim -N -u NONE testfile.txt > > :set clipboard=autoselectplus,unnamedplus > > :reg > > --- Registers --- > > "* empty > > "+ empty > > ": set clipboard=autoselectplus,unnamedplus > > "% testfile.txt > > > > yyjVp > > > > :reg > > --- Registers --- > > "" overwrite line^J > > "0 yanked line^J > > "1 overwrite line^J > > "* overwrite line^J > > "+ overwrite line^J > > ": reg > > "% testfile.txt > > :wq > > > > Expected result: "overwrite line" has been replaced by "yanked line", so > that both lines of the file contains "yanked file". > > Note: the issue is reproducible with the following configurations: > > * autoselectplus,unnamedplus > > * autoselectplus,unnamed > > * autoselect,unnamed > > It does not seem to be reproducible with other combinations: > > * autoselectplus > > * autoselect > > * unnamed > > * unnamedplus > > * autoselect,unnamedplus > > > > Thanks for your advices... > > I can reproduce it. There is a check missing when yanking the Visual > selection. I'll make a patch. > > -- > FATHER: Who are you? > PRINCE: I'm ... your son ... > FATHER: Not you. > LAUNCELOT: I'm ... er ... Sir Launcelot, sir. > "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES > LTD > > /// 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.
