view src/testdir/test_curswant.vim @ 32365:da534deace14 v9.0.1514

patch 9.0.1514: test waits unnecessarily long before checking screendump Commit: https://github.com/vim/vim/commit/45fcb7928af8ac9bc5685ce7c804b8250866a874 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 6 13:01:27 2023 +0100 patch 9.0.1514: test waits unnecessarily long before checking screendump Problem: Test waits unnecessarily long before checking screendump. Solution: Remove TermWait() call.
author Bram Moolenaar <Bram@vim.org>
date Sat, 06 May 2023 14:15:02 +0200
parents 08940efa6b4e
children
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

" vim: shiftwidth=2 sts=2 expandtab