We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2be5733 commit 341a64cCopy full SHA for 341a64c
3 files changed
src/evalfunc.c
@@ -4365,7 +4365,10 @@ f_getchangelist(typval_T *argvars, typval_T *rettv)
4365
return;
4366
4367
#ifdef FEAT_JUMPLIST
4368
- buf = find_buffer(&argvars[0]);
+ (void)get_tv_number(&argvars[0]); /* issue errmsg if type error */
4369
+ ++emsg_off;
4370
+ buf = get_buf_tv(&argvars[0], FALSE);
4371
+ --emsg_off;
4372
if (buf == NULL)
4373
4374
src/testdir/test_changelist.vim
@@ -9,7 +9,7 @@ func Test_getchangelist()
9
bwipe!
10
enew
11
call assert_equal([], getchangelist(10))
12
- call assert_equal([[], 0], getchangelist(bufnr('%')))
+ call assert_equal([[], 0], getchangelist('%'))
13
14
call writefile(['line1', 'line2', 'line3'], 'Xfile1.txt')
15
call writefile(['line1', 'line2', 'line3'], 'Xfile2.txt')
@@ -23,15 +23,15 @@ func Test_getchangelist()
23
\ {'lnum' : 2, 'col' : 4, 'coladd' : 0},
24
\ {'lnum' : 4, 'col' : 4, 'coladd' : 0},
25
\ {'lnum' : 6, 'col' : 4, 'coladd' : 0}], 2],
26
- \ getchangelist(bufnr('%')))
+ \ getchangelist('%'))
27
28
hide edit Xfile2.txt
29
exe "normal 1GOline\<C-G>u1.0"
30
exe "normal 2Goline\<C-G>u2.0"
31
call assert_equal([[
32
\ {'lnum' : 1, 'col' : 6, 'coladd' : 0},
33
\ {'lnum' : 3, 'col' : 6, 'coladd' : 0}], 2],
34
35
hide enew
36
37
src/version.c
@@ -771,6 +771,8 @@ static char *(features[]) =
771
772
static int included_patches[] =
773
{ /* Add new patch number below this line */
774
+/**/
775
+ 1519,
776
/**/
777
1518,
778
0 commit comments