view src/testdir/test_global.vim @ 15830:69b6cf55d9bb v8.1.0922

patch 8.1.0922: terminal scrollback test is flaky commit https://github.com/vim/vim/commit/96baf02aa87dc6ec43850c5617fe53061edd97bf Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 14 23:49:38 2019 +0100 patch 8.1.0922: terminal scrollback test is flaky Problem: Terminal scrollback test is flaky. Solution: Wait a bit before running the tail command.
author Bram Moolenaar <Bram@vim.org>
date Fri, 15 Feb 2019 00:00:05 +0100
parents 8e5ec22db3d8
children b8fd7364befd
line wrap: on
line source


func Test_yank_put_clipboard()
  new
  call setline(1, ['a', 'b', 'c'])
  set clipboard=unnamed
  g/^/normal yyp
  call assert_equal(['a', 'a', 'b', 'b', 'c', 'c'], getline(1, 6))

  set clipboard&
  bwipe!
endfunc

func Test_nested_global()
  new
  call setline(1, ['nothing', 'found', 'found bad', 'bad'])
  call assert_fails('g/found/3v/bad/s/^/++/', 'E147')
  g/found/v/bad/s/^/++/
  call assert_equal(['nothing', '++found', 'found bad', 'bad'], getline(1, 4))
  bwipe!
endfunc