call StopVimInTerminal(buf)
endfunc
+" test '] mark generated by op_yank
+func Test_mark_from_yank()
+ new
+ " double quote object
+ call setline(1, 'test "yank" mark')
+ normal! yi"
+ call assert_equal([0, 1, 10, 0], getpos("']"))
+ normal! ya"
+ call assert_equal(getpos("']"), [0, 1, 13, 0], getpos("']"))
+ " single quote object
+ call setline(1, 'test ''yank'' mark')
+ normal! yi'
+ call assert_equal([0, 1, 10, 0], getpos("']"))
+ normal! ya'
+ call assert_equal([0, 1, 13, 0], getpos("']"))
+ " paren object
+ call setline(1, 'test (yank) mark')
+ call cursor(1, 9)
+ normal! yi(
+ call assert_equal([0, 1, 10, 0], getpos("']"))
+ call cursor(1, 9)
+ normal! ya(
+ call assert_equal([0, 1, 11, 0], getpos("']"))
+ " brace object
+ call setline(1, 'test {yank} mark')
+ call cursor(1, 9)
+ normal! yi{
+ call assert_equal([0, 1, 10, 0], getpos("']"))
+ call cursor(1, 9)
+ normal! ya{
+ call assert_equal([0, 1, 11, 0], getpos("']"))
+ " bracket object
+ call setline(1, 'test [yank] mark')
+ call cursor(1, 9)
+ normal! yi[
+ call assert_equal([0, 1, 10, 0], getpos("']"))
+ call cursor(1, 9)
+ normal! ya[
+ call assert_equal([0, 1, 11, 0], getpos("']"))
+ " block object
+ call setline(1, 'test <yank> mark')
+ call cursor(1, 9)
+ normal! yi<
+ call assert_equal([0, 1, 10, 0], getpos("']"))
+ call cursor(1, 9)
+ normal! ya<
+ call assert_equal([0, 1, 11, 0], getpos("']"))
+ bw!
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab