view src/testdir/test_curswant.vim @ 18900:a9c47c623f4a v8.2.0011

patch 8.2.0011: screen updating wrong when opeing preview window Commit: https://github.com/vim/vim/commit/5e5a98d7de41457fabad4eb5af3d54cc93f05d0a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 15 14:55:33 2019 +0100 patch 8.2.0011: screen updating wrong when opeing preview window Problem: Screen updating wrong when opeing preview window. Solution: Redraw the window when the preview window opens.
author Bram Moolenaar <Bram@vim.org>
date Sun, 15 Dec 2019 15:00: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