view src/testdir/test_global.vim @ 15452:1c6a708a5fee v8.1.0734

patch 8.1.0734: the hlsearch state is not stored in a session file commit https://github.com/vim/vim/commit/e3c74d249ac36404d8af25f74baf335d143b30e3 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 12 16:29:30 2019 +0100 patch 8.1.0734: the hlsearch state is not stored in a session file Problem: The hlsearch state is not stored in a session file. Solution: Add "nohlsearch" if appropriate. (Jason Franklin)
author Bram Moolenaar <Bram@vim.org>
date Sat, 12 Jan 2019 16:30: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