view src/testdir/test_lua.vim @ 13088:3dd37eec73f0 v8.0.1419

patch 8.0.1419: cursor column is not updated after ]s commit https://github.com/vim/vim/commit/b73fa629d6d3d705c1f8e8d5f8109fc9abd7bb6f Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 21 20:27:47 2017 +0100 patch 8.0.1419: cursor column is not updated after ]s Problem: Cursor column is not updated after ]s. (Gary Johnson) Solution: Set the curswant flag.
author Christian Brabandt <cb@256bit.org>
date Thu, 21 Dec 2017 20:30: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