view src/testdir/test_curswant.vim @ 18804:2d41b63f52de v8.1.2390

patch 8.1.2390: test94 is old style, fix 7.4.441 not tested Commit: https://github.com/vim/vim/commit/309976ec1f033c68480bbc8cc363db5b5ea944f9 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 5 18:16:33 2019 +0100 patch 8.1.2390: test94 is old style, fix 7.4.441 not tested Problem: Test94 is old style, fix 7.4.441 not tested. Solution: Turn test94 into a new style test. Add tests for the fix in patch 7.4.441. (Yegappan Lakshmanan, closes #5316)
author Bram Moolenaar <Bram@vim.org>
date Thu, 05 Dec 2019 18:30:04 +0100
parents 0240e7e3d736
children 08940efa6b4e
line wrap: on
line source

" Tests for curswant not changing when setting an option

func Test_curswant()
  new
  call append(0, ['1234567890', '12345'])

  normal! ggf8j
  call assert_equal(7, winsaveview().curswant)
  let &tabstop=&tabstop
  call assert_equal(4, winsaveview().curswant)

  normal! ggf8j
  call assert_equal(7, winsaveview().curswant)
  let &timeoutlen=&timeoutlen
  call assert_equal(7, winsaveview().curswant)

  normal! ggf8j
  call assert_equal(7, winsaveview().curswant)
  let &ttimeoutlen=&ttimeoutlen
  call assert_equal(7, winsaveview().curswant)

  enew!
endfunc