view src/testdir/test_tcl.vim @ 13246:dd3b2ecf91f6 v8.0.1497

patch 8.0.1497: getting the jump list requires parsing the output of :jumps commit https://github.com/vim/vim/commit/4f50588ba336e7f086a72c53f5688c2494fc34b3 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 10 21:06:32 2018 +0100 patch 8.0.1497: getting the jump list requires parsing the output of :jumps Problem: Getting the jump list requires parsing the output of :jumps. Solution: Add getjumplist(). (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/2609)
author Christian Brabandt <cb@256bit.org>
date Sat, 10 Feb 2018 21:15:05 +0100
parents ae0bbbbe2a38
children c80acf74e7df
line wrap: on
line source

" Tests for the Tcl interface.

if !has('tcl')
  finish
end

function Test_tcldo()
  " Check deleting lines does not trigger ml_get error.
  new
  call setline(1, ['one', 'two', 'three'])
  tcldo ::vim::command %d_
  bwipe!

  " Check switching to another buffer does not trigger ml_get error.
  new
  let wincount = winnr('$')
  call setline(1, ['one', 'two', 'three'])
  tcldo ::vim::command new
  call assert_equal(wincount + 1, winnr('$'))
  bwipe!
  bwipe!
endfunc