view src/testdir/test_lua.vim @ 13180:0dfd846f9190 v8.0.1464

patch 8.0.1464: completing directory after :find does not add slash commit https://github.com/vim/vim/commit/8a37b032895b40dd6953280c33585bcba0c7ef8b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 3 20:43:08 2018 +0100 patch 8.0.1464: completing directory after :find does not add slash Problem: Completing directory after :find does not add slash. Solution: Adjust the flags for globpath(). (Genki Sky)
author Christian Brabandt <cb@256bit.org>
date Sat, 03 Feb 2018 20:45:06 +0100
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