To: vim_dev@googlegroups.com Subject: Patch 8.1.1972 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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("\", '') + call assert_equal("\", 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 -- Bram@Moolenaar.net -- 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 ///