view src/testdir/test_curswant.vim @ 23819:7237ed5f89bd v8.2.2451

patch 8.2.2451: MS-Windows: Extended Attributes not preserved Commit: https://github.com/vim/vim/commit/e7bebc495d4014d7bc81f863939c35268cb8e97d Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 1 20:50:37 2021 +0100 patch 8.2.2451: MS-Windows: Extended Attributes not preserved Problem: MS-Windows: Extended Attributes not preserved. Solution: Preserve Extended Attributes when writing a file. (Ken Takata, closes #7765)
author Bram Moolenaar <Bram@vim.org>
date Mon, 01 Feb 2021 21:00:03 +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