view src/testdir/test_curswant.vim @ 27207:7b8e2bea0ec5 v8.2.4132

patch 8.2.4132: Vim9: wrong error message when autoload script can't be found Commit: https://github.com/vim/vim/commit/1836d6157828baddd94e1f2c82488031570e444d Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 18 13:14:47 2022 +0000 patch 8.2.4132: Vim9: wrong error message when autoload script can't be found Problem: Vim9: wrong error message when autoload script can't be found. Solution: Correct check for using autoload with wrong name.
author Bram Moolenaar <Bram@vim.org>
date Tue, 18 Jan 2022 14:15:06 +0100
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