view src/testdir/test_lua.vim @ 14143:2aec369c4fc3 v8.1.0089

patch 8.1.0089: error when ending the terminal debugger commit https://github.com/vim/vim/commit/a15b0a936d2013e99e9323da9b920a5d93e4fb5a Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 19 22:34:46 2018 +0200 patch 8.1.0089: error when ending the terminal debugger Problem: error when ending the terminal debugger Solution: Fix deleting defined signs for breakpoints. Make the debugger work better on MS-Windows.
author Christian Brabandt <cb@256bit.org>
date Tue, 19 Jun 2018 22:45:05 +0200
parents 6c3d42d18366
children 2e95ea9afa1e
line wrap: on
line source

" Tests for Lua.
" TODO: move tests from test85.in here.

if !has('lua')
  finish
endif

func Test_luado()
  new
  call setline(1, ['one', 'two', 'three'])
  luado 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'])
  luado vim.command("new")
  call assert_equal(wincount + 1, winnr('$'))
  bwipe!
  bwipe!
endfunc