Patch 9.0.0471
Problem: No test for what patch 9.0.0469 fixes.
Solution: Add a test. (closes #11140)
Files: src/testdir/test_window_cmd.vim
*** ../vim-9.0.0470/src/testdir/test_window_cmd.vim 2022-09-14
17:27:33.148117751 +0100
--- src/testdir/test_window_cmd.vim 2022-09-15 17:43:41.562520925 +0100
***************
*** 1770,1773 ****
--- 1770,1799 ----
set splitscroll&
endfunc
+ function Test_nosplitscroll_cmdwin_cursor_position()
+ set nosplitscroll
+ call setline(1, range(&lines))
+
+ " No scroll when cursor is at near bottom of window and cusor position
+ " recompution (done by line('w0') in this test) happens while in cmdwin.
+ normal! G
+ let firstline = line('w0')
+ autocmd CmdwinEnter * ++once autocmd WinEnter * ++once call line('w0')
+ execute "normal! q:\<C-w>q"
+ redraw!
+ call assert_equal(firstline, line('w0'))
+
+ " User script can change cursor position successfully while in cmdwin and it
+ " shouldn't be changed when closing cmdwin.
+ execute "normal! Gq:\<Cmd>call win_execute(winnr('#')->win_getid(), 'call
cursor(1, 1)')\<CR>\<C-w>q"
+ call assert_equal(1, line('.'))
+ call assert_equal(1, col('.'))
+
+ execute "normal! Gq:\<Cmd>autocmd WinEnter * ++once call cursor(1,
1)\<CR>\<C-w>q"
+ call assert_equal(1, line('.'))
+ call assert_equal(1, col('.'))
+
+ %bwipeout!
+ set splitscroll&
+ endfunction
" vim: shiftwidth=2 sts=2 expandtab
*** ../vim-9.0.0470/src/version.c 2022-09-15 17:19:30.026390537 +0100
--- src/version.c 2022-09-15 17:39:21.411105555 +0100
***************
*** 705,706 ****
--- 705,708 ----
{ /* Add new patch number below this line */
+ /**/
+ 471,
/**/
--
hundred-and-one symptoms of being an internet addict:
88. Every single time you press the 'Get mail' button...it does get new mail.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20220915184641.9E44A1C082B%40moolenaar.net.