Patch 8.1.1972
Problem: No proper test for getchar().
Solution: Add a test with special characters.
Files: src/testdir/test_functions.vim
*** ../vim-8.1.1971/src/testdir/test_functions.vim 2019-09-03
17:13:32.040528491 +0200
--- src/testdir/test_functions.vim 2019-09-03 23:36:20.721716391 +0200
***************
*** 1314,1319 ****
--- 1314,1336 ----
unlet g:typed2
endfunc
+ func Test_getchar()
+ call feedkeys('a', '')
+ call assert_equal(char2nr('a'), getchar())
+
+ call test_setmouse(1, 3)
+ let v:mouse_win = 9
+ let v:mouse_winid = 9
+ let v:mouse_lnum = 9
+ let v:mouse_col = 9
+ call feedkeys("\<S-LeftMouse>", '')
+ call assert_equal("\<S-LeftMouse>", getchar())
+ call assert_equal(1, v:mouse_win)
+ call assert_equal(win_getid(1), v:mouse_winid)
+ call assert_equal(1, v:mouse_lnum)
+ call assert_equal(3, v:mouse_col)
+ endfunc
+
func Test_libcall_libcallnr()
if !has('libcall')
return
*** ../vim-8.1.1971/src/version.c 2019-09-03 23:20:00.929446231 +0200
--- src/version.c 2019-09-03 23:25:28.928334727 +0200
***************
*** 763,764 ****
--- 763,766 ----
{ /* Add new patch number below this line */
+ /**/
+ 1972,
/**/
--
If Apple would build a car...
... it would be powered by the sun, be reliable, five times
as fast and twice as easy to drive; but would only run on
five percent of the roads.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ 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/201909032137.x83LbrG2004634%40masaka.moolenaar.net.