Lines Matching refs:nr
153 call g:Xsetlist([{'lnum':10,'col':5,'type':'W', 'text':'Warning','nr':11},
154 \ {'lnum':20,'col':10,'type':'e','text':'Error','nr':22},
155 \ {'lnum':30,'col':15,'type':'i','text':'Info','nr':33},
156 \ {'lnum':40,'col':20,'type':'x', 'text':'Other','nr':44},
157 \ {'lnum':50,'col':25,'type':"\<C-A>",'text':'one','nr':55}])
167 …\ {'lnum':10,'col':5,'type':'W','module':'Data.Text','text':'ModuleWarning','nr':11,'valid':v:true…
168 …:'W','module':'Data.Text','filename':'Data/Text.hs','text':'ModuleWarning','nr':22,'valid':v:true},
169 …\ {'lnum':30,'col':15,'type':'W','filename':'Data/Text.hs','text':'FileWarning','nr':33,'valid':v:…
763 …let a=[{'lnum': 308, 'bufnr': bufnr(''), 'col': 58, 'valid': 1, 'vcol': 0, 'nr': 0, 'type': '', 'p…
1338 call assert_equal(275, l[0].nr)
1780 eval []->setqflist(' ', {'nr' : $XXX_DOES_NOT_EXIST})
2188 call assert_equal(3, g:Xgetlist({'nr' : 0}).nr)
2190 call assert_equal(1, g:Xgetlist({'nr' : 0}).nr)
2192 call assert_equal(3, g:Xgetlist({'nr' : 0}).nr)
2261 let qfnr = g:Xgetlist({'all':1}).nr
2265 call assert_equal(qfnr + 1, g:Xgetlist({'all':1}).nr)
2267 let res = g:Xgetlist({'nr': 0})
2268 call assert_equal(qfnr + 1, res.nr)
2269 call assert_equal(['nr'], keys(res))
2272 call assert_equal('N2', g:Xgetlist({'nr':2, 'title':1}).title)
2275 call g:Xsetlist([], 'r', {'title' : 'NewTitle', 'nr' : 2})
2276 call assert_equal('NewTitle', g:Xgetlist({'nr':2, 'title':1}).title)
2280 \ {'title' : 'SomeTitle', 'nr' : 99}))
2282 \ {'title' : 'SomeTitle', 'nr' : 'abc'}))
2297 call assert_equal('', g:Xgetlist({'nr':99, 'title':1}).title)
2298 call assert_equal('', g:Xgetlist({'nr':[], 'title':1}).title)
2354 call g:Xsetlist([], 'r', {'context' : [1], 'nr' : 1})
2355 call g:Xsetlist([], 'a', {'context' : [2], 'nr' : 2})
2357 call g:Xsetlist([], 'r', {'context' : [3], 'nr' : 0})
2359 let l = g:Xgetlist({'nr' : 1, 'context' : 1})
2361 let l = g:Xgetlist({'nr' : 2, 'context' : 1})
2363 let l = g:Xgetlist({'nr' : 3, 'context' : 1})
2382 let qfprev = g:Xgetlist({'nr':0})
2386 let qfcur = g:Xgetlist({'nr':0})
2387 call assert_true(qfcur.nr == qfprev.nr + 1)
2431 call assert_equal(0, g:Xgetlist({'nr':'$'}).nr)
2435 let last_qf = g:Xgetlist({'nr':'$'}).nr
2439 let qstack = add(qstack, g:Xgetlist({'nr':i, 'all':1}))
2445 call assert_equal(3, g:Xgetlist({'nr':'$'}).nr)
2446 call assert_equal(10, g:Xgetlist({'nr':1, 'items':1}).items[0].lnum)
2447 call assert_equal(20, g:Xgetlist({'nr':2, 'items':1}).items[0].lnum)
2448 call assert_equal(30, g:Xgetlist({'nr':3, 'items':1}).items[0].lnum)
2455 call g:Xsetlist([], 'r', {'nr':1,'title':'Colors','context':['Colors']})
2456 call g:Xsetlist([], 'r', {'nr':2,'title':'Fruits','context':['Fruits']})
2457 let l1=g:Xgetlist({'nr':1,'all':1})
2458 let l2=g:Xgetlist({'nr':2,'all':1})
2464 let newl1=g:Xgetlist({'nr':1,'all':1})
2465 let newl2=g:Xgetlist({'nr':2,'all':1})
2491 call g:Xsetlist([], 'a', {'nr' : 3, 'idx' : 2})
2492 call g:Xsetlist([], 'a', {'nr' : 2, 'idx' : 2})
2493 call g:Xsetlist([], 'a', {'nr' : 1, 'idx' : 3})
2503 call g:Xsetlist([], 'a', {'nr' : 3, 'idx' : 3})
2509 call g:Xsetlist([], 'a', {'nr' : 1, 'idx' : '$'})
2510 call assert_equal(3, g:Xgetlist({'nr' : 1, 'idx' : 0}).idx)
2512 call g:Xsetlist([], 'a', {'nr' : 1, 'idx' : 1})
2513 call g:Xsetlist([], 'a', {'nr' : 1, 'idx' : 999})
2514 call assert_equal(3, g:Xgetlist({'nr' : 1, 'idx' : 0}).idx)
2516 call g:Xsetlist([], 'a', {'nr' : 1, 'idx' : -1})
2517 call assert_equal(3, g:Xgetlist({'nr' : 1, 'idx' : 0}).idx)
2518 call g:Xsetlist([], 'a', {'nr' : 1, 'idx' : 0})
2519 call assert_equal(3, g:Xgetlist({'nr' : 1, 'idx' : 0}).idx)
2520 call g:Xsetlist([], 'a', {'nr' : 1, 'idx' : 'xx'})
2521 call assert_equal(3, g:Xgetlist({'nr' : 1, 'idx' : 0}).idx)
2522 call assert_fails("call g:Xsetlist([], 'a', {'nr':1, 'idx':[]})", 'E745:')
3011 call assert_equal(1, g:Xgetlist({'all':1}).nr)
3077 call assert_equal(0, g:Xgetlist({'nr':'$'}).nr)
3078 call assert_equal('', g:Xgetlist({'nr':'$', 'all':1}).title)
3079 call assert_equal(0, g:Xgetlist({'nr':0}).nr)
3085 call assert_equal(3, g:Xgetlist({'nr':'$'}).nr)
3092 call g:Xsetlist([], 'a', {'nr':'$', 'title':'Compiler'})
3093 call assert_equal('Compiler', g:Xgetlist({'nr':3, 'all':1}).title)
3280 call g:Xsetlist([], 'a', {'nr' : 1, 'lines' : ["File1:10:Line10"]})
3281 call g:Xsetlist([], 'a', {'nr' : 2, 'lines' : ["File2:20:Line20"]})
3282 call g:Xsetlist([], 'a', {'nr' : 1, 'lines' : ["File1:15:Line15"]})
3283 call g:Xsetlist([], 'a', {'nr' : 2, 'lines' : ["File2:25:Line25"]})
3284 call assert_equal('Line15', g:Xgetlist({'nr':1, 'items':1}).items[1].text)
3285 call assert_equal('Line25', g:Xgetlist({'nr':2, 'items':1}).items[1].text)
3311 call g:Xsetlist([], 'a', {'nr' : 1, 'lines' : ["Entering dir 'Xone/a'"]})
3312 call g:Xsetlist([], 'a', {'nr' : 2, 'lines' : ["Entering dir 'Xtwo/a'"]})
3313 call g:Xsetlist([], 'a', {'nr' : 1, 'lines' : ["one.txt:3:one one one"]})
3314 call g:Xsetlist([], 'a', {'nr' : 2, 'lines' : ["two.txt:5:two two two"]})
3316 let l1 = g:Xgetlist({'nr':1, 'items':1})
3317 let l2 = g:Xgetlist({'nr':2, 'items':1})
3348 call g:Xsetlist([], 'a', {'nr' : 1, 'lines' : ["[one.txt]"]})
3349 call g:Xsetlist([], 'a', {'nr' : 2, 'lines' : ["[two.txt]"]})
3350 call g:Xsetlist([], 'a', {'nr' : 1, 'lines' : ["(3,5) one one one"]})
3351 call g:Xsetlist([], 'a', {'nr' : 2, 'lines' : ["(5,9) two two two"]})
3353 let l1 = g:Xgetlist({'nr':1, 'items':1})
3354 let l2 = g:Xgetlist({'nr':2, 'items':1})
3442 let l = g:Xgetlist({'nr' : '$', 'all' : 1})
3443 call assert_equal(1, l.nr)
3446 " Create a new list using ' ' for action and '$' for 'nr'
3448 call g:Xsetlist([], ' ', {'title' : 'Test2', 'nr' : '$'})
3449 let l = g:Xgetlist({'nr' : '$', 'all' : 1})
3450 call assert_equal(1, l.nr)
3456 let l = g:Xgetlist({'nr' : '$', 'all' : 1})
3457 call assert_equal(1, l.nr)
3460 " Create a new list using 'a' for action and '$' for 'nr'
3462 call g:Xsetlist([], 'a', {'title' : 'Test3', 'nr' : '$'})
3464 let l = g:Xgetlist({'nr' : '$', 'all' : 1})
3465 call assert_equal(1, l.nr)
3473 let l = g:Xgetlist({'nr' : '$', 'all' : 1})
3474 call assert_equal(2, l.nr)
3478 let lastqf = g:Xgetlist({'nr':'$'}).nr
3480 call g:Xsetlist([], ' ', {'nr' : '$', 'title' : 'Test6'})
3481 let l = g:Xgetlist({'nr' : '$', 'all' : 1})
3482 call assert_equal(lastqf + 1, l.nr)
3485 " Add a quickfix list using 'nr' set to one more than the quickfix
3487 let lastqf = g:Xgetlist({'nr':'$'}).nr
3489 call g:Xsetlist([], ' ', {'nr' : lastqf + 1, 'title' : 'Test7'})
3490 let l = g:Xgetlist({'nr' : '$', 'all' : 1})
3491 call assert_equal(lastqf + 1, l.nr)
3494 " Add a quickfix list to a stack with 10 lists using 'nr' set to '$'
3497 call g:Xsetlist([], ' ', {'nr' : '$', 'title' : 'Test8'})
3498 let l = g:Xgetlist({'nr' : '$', 'all' : 1})
3499 call assert_equal(10, l.nr)
3502 " Add a quickfix list using 'nr' set to a value greater than 10
3503 call assert_equal(-1, g:Xsetlist([], ' ', {'nr' : 12, 'title' : 'Test9'}))
3505 " Try adding a quickfix list with 'nr' set to a value greater than the
3510 call assert_equal(-1, g:Xsetlist([], ' ', {'nr' : 8, 'title' : 'Test10'}))
3512 " Add a quickfix list using 'nr' set to a some string or list
3513 call assert_equal(-1, g:Xsetlist([], ' ', {'nr' : [1,2], 'title' : 'Test11'}))
3548 call assert_equal(0, g:Xgetlist({'nr' : '$'}).nr)
3566 call assert_equal(start_id, g:Xgetlist({'id':0, 'nr':1}).id)
3567 call assert_equal(start_id + 1, g:Xgetlist({'id':0, 'nr':0}).id)
3568 call assert_equal(start_id + 2, g:Xgetlist({'id':0, 'nr':'$'}).id)
3569 call assert_equal(0, g:Xgetlist({'id':0, 'nr':99}).id)
3570 call assert_equal(2, g:Xgetlist({'id':start_id + 1, 'nr':0}).nr)
3571 call assert_equal(0, g:Xgetlist({'id':99, 'nr':0}).id)
3572 call assert_equal(0, g:Xgetlist({'id':"abc", 'nr':0}).id)
3575 call assert_equal([1,2], g:Xgetlist({'nr':1, 'context':1}).context)
3577 call assert_equal('L10', g:Xgetlist({'nr':2, 'items':1}).items[0].text)
3581 let qfid = g:Xgetlist({'id':0, 'nr':0})
3583 call assert_equal(0, g:Xgetlist({'id':qfid, 'nr':0}).id)
3699 call assert_equal(0, g:Xgetlist({'nr' : 0}).nr)
3706 \ 'items' : [], 'nr' : 0, 'size' : 0, 'qfbufnr' : 0,
3711 \ 'items' : [], 'nr' : 0, 'size' : 0, 'title' : '',
3730 call assert_notequal(0, g:Xgetlist({'nr' : 0}).nr)
3744 call assert_equal(0, g:Xgetlist({'id' : qfid, 'nr' : 0}).nr)
3751 \ 'nr' : 0, 'size' : 0, 'title' : '', 'winid' : 0,
3756 \ 'nr' : 0, 'size' : 0, 'title' : '', 'winid' : 0,
3763 call assert_equal('', g:Xgetlist({'nr' : 5, 'context' : 0}).context)
3764 call assert_equal(0, g:Xgetlist({'nr' : 5}).nr)
3765 call assert_equal(0, g:Xgetlist({'nr' : 5, 'idx' : 0}).idx)
3766 call assert_equal([], g:Xgetlist({'nr' : 5, 'items' : 0}).items)
3767 call assert_equal(0, g:Xgetlist({'nr' : 5, 'id' : 0}).id)
3768 call assert_equal(0, g:Xgetlist({'nr' : 5, 'size' : 0}).size)
3769 call assert_equal('', g:Xgetlist({'nr' : 5, 'title' : 0}).title)
3770 call assert_equal(0, g:Xgetlist({'nr' : 5, 'winid' : 0}).winid)
3771 call assert_equal(0, g:Xgetlist({'nr' : 5, 'changedtick' : 0}).changedtick)
3774 \ 'nr' : 0, 'size' : 0, 'title' : '', 'winid' : 0,
3776 \ 'quickfixtextfunc' : ''}, g:Xgetlist({'nr' : 5, 'all' : 0}))
3779 \ 'nr' : 0, 'size' : 0, 'title' : '', 'winid' : 0,
3781 \ 'quickfixtextfunc' : ''}, g:Xgetlist({'nr' : 5, 'all' : 0}))
3793 call getqflist({'nr' : $XXX_DOES_NOT_EXIST_XXX})
3845 call g:Xsetlist([], 'a', {'nr' : 1, "lines" : ["F10:10:L10"]})
3847 call assert_equal(2, g:Xgetlist({'nr' : 1, 'changedtick' : 0}).changedtick)
3862 call assert_notequal(0, g:Xgetlist({'nr' : '$'}).nr)
4012 call assert_equal(1, getqflist({'nr' : 0}).nr)
4013 call assert_equal(3, getqflist({'nr' : '$'}).nr)
4081 call assert_equal(0, getloclist(0, {'nr' : '$'}).nr)
4084 call assert_equal(1, getloclist(0, {'nr' : '$'}).nr)
4945 call assert_equal(0, g:Xgetlist({'nr' : '$'}).nr)
4956 call assert_equal(0, g:Xgetlist({'nr' : '$'}).nr)
4969 call assert_equal(0, g:Xgetlist({'nr' : '$'}).nr)
4980 call assert_equal(0, g:Xgetlist({'nr' : '$'}).nr)
4990 call assert_equal(0, g:Xgetlist({'nr' : '$'}).nr)
5001 call assert_equal(0, g:Xgetlist({'nr' : '$'}).nr)
5386 …, 'col': 0 , 'end_col': 0 , 'pattern': '' , 'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , …
5388 …, 'col': 0 , 'pattern': '' , 'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , …
5391 …, 'col': 0 , 'end_col': 0 , 'pattern': '' , 'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , …
5393 …, 'col': 0 , 'end_col': 0 , 'pattern': '' , 'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , …
5396 …, 'col': 0 , 'end_col': 0 , 'pattern': '' , 'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , …
5398 …, 'col': 0 , 'end_col': -456 , 'pattern': '' , 'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , …
5401 …, 'col': 0 , 'end_col': -456 , 'pattern': '' , 'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , …
5403 …, 'col': 666 , 'end_col': 0 , 'pattern': '' , 'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , …
5406 …, 'col': 666 , 'end_col': 0 , 'pattern': '' , 'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , …
5408 …, 'col': 666 , 'end_col': -456 , 'pattern': '' , 'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , …
5411 …, 'col': 666 , 'end_col': -456 , 'pattern': '' , 'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , …
5413 …, 'col': 666 , 'end_col': 222 , 'pattern': '' , 'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , …
5416 …, 'col': 666 , 'end_col': 222 , 'pattern': '' , 'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , …
5418 …, 'col': 666 , 'end_col': 222 , 'pattern': '' , 'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , …
5421 …, 'col': 666 , 'end_col': 222 , 'pattern': '' , 'valid': 1 , 'vcol': 0 , 'nr': -1 , 'type': '' , …