Bram Moolenaar | 4a137b4 | 2017-08-04 22:37:11 +0200 | [diff] [blame] | 1 | " Tests for curswant not changing when setting an option |
| 2 | |
| 3 | func Test_curswant() |
| 4 | new |
| 5 | call append(0, ['1234567890', '12345']) |
| 6 | |
| 7 | normal! ggf8j |
| 8 | call assert_equal(7, winsaveview().curswant) |
| 9 | let &tabstop=&tabstop |
| 10 | call assert_equal(4, winsaveview().curswant) |
| 11 | |
| 12 | normal! ggf8j |
| 13 | call assert_equal(7, winsaveview().curswant) |
| 14 | let &timeoutlen=&timeoutlen |
| 15 | call assert_equal(7, winsaveview().curswant) |
| 16 | |
| 17 | normal! ggf8j |
| 18 | call assert_equal(7, winsaveview().curswant) |
| 19 | let &ttimeoutlen=&ttimeoutlen |
| 20 | call assert_equal(7, winsaveview().curswant) |
| 21 | |
| 22 | enew! |
| 23 | endfunc |
Bram Moolenaar | 6d91bcb | 2020-08-12 18:50:36 +0200 | [diff] [blame^] | 24 | |
| 25 | " vim: shiftwidth=2 sts=2 expandtab |