Skip to content

Commit 4a4981b

Browse files
committed
patch 8.1.2166: rubyeval() not tested as a method
Problem: Rubyeval() not tested as a method. Solution: Change a test case.
1 parent 2e693a8 commit 4a4981b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/testdir/test_ruby.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func Test_set_cursor()
4646
" Check that movement after setting cursor position keeps current column.
4747
normal j
4848
call assert_equal([2, 6], [line('.'), col('.')])
49-
call assert_equal([2, 5], rubyeval('$curwin.cursor'))
49+
call assert_equal([2, 5], '$curwin.cursor'->rubyeval())
5050

5151
call assert_fails('ruby $curwin.cursor = [1]',
5252
\ 'ArgumentError: array length must be 2')

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,8 @@ static char *(features[]) =
753753

754754
static int included_patches[] =
755755
{ /* Add new patch number below this line */
756+
/**/
757+
2166,
756758
/**/
757759
2165,
758760
/**/

0 commit comments

Comments
 (0)