* Bram Moolenaar <b...@moolenaar.net> [2018-03-06 19:51 +0100]: > > Patch 8.0.1587 > Problem: inserting from the clipboard doesn't work literally > Solution: When pasting from the * or + register always assume literally. > Files: src/ops.c, src/proto/ops.pro, src/edit.c, src/ops.c, > src/testdir/test_paste.vim > > [...] > *************** > *** 66,71 **** > --- 66,82 ---- > bwipe! > endfunc > > + func Test_paste_clipboard() > + if !has('clipboard') > + return > + endif > + let @+ = "nasty\<Esc>:!ls\<CR>command" > + new > + exe "normal i\<C-R>+\<Esc>" > + call assert_equal("nasty\<Esc>:!ls\<CR>command", getline(1)) > + bwipe! > + endfunc > + > func Test_paste_cmdline() > call feedkeys(":a\<Esc>[200~foo\<CR>bar\<Esc>[201~b\<Home>\"\<CR>", 'xt') > call assert_equal("\"afoo\<CR>barb", getreg(':'))
Building gtk version on TERM=tmux-256color I get: >From test_paste.vim: Found errors in Test_paste_clipboard(): function RunTheTest[38]..Test_paste_clipboard line 7: Expected 'nasty\e:!ls\rcommand' but got 'nasty' TEST FAILURE Elimar -- You cannot propel yourself forward by patting yourself on the back. -- -- 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 vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.