view src/testdir/test_curswant.vim @ 29181:71759abd2145 v8.2.5110

patch 8.2.5110: icon filetype not recognized from the first line Commit: https://github.com/vim/vim/commit/bf6614643f656d38d220c04befdcb1d35774853a Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 16 13:27:18 2022 +0100 patch 8.2.5110: icon filetype not recognized from the first line Problem: Icon filetype not recognized from the first line. Solution: Add a check for the first line. (Doug Kearns)
author Bram Moolenaar <Bram@vim.org>
date Thu, 16 Jun 2022 14:30:03 +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