Lines Matching refs:l
92 if a:cchar == 'l'
106 let l = split(execute('Xlist', ''), "\n")
109 \ ' 6 Xtestfile3:3 col 1: Line3'], l)
112 let l = split(execute('Xlist!', ''), "\n")
115 \ ' 5: non-error| 3', ' 6 Xtestfile3:3 col 1: Line3'], l)
118 let l = split(execute('Xlist 3,6', ''), "\n")
120 \ ' 6 Xtestfile3:3 col 1: Line3'], l)
122 let l = split(execute('Xlist! 3,4', ''), "\n")
123 call assert_equal([' 3: non-error 2', ' 4 Xtestfile2:2 col 2: Line2'], l)
125 let l = split(execute('Xlist -6,-4', ''), "\n")
126 call assert_equal([' 2 Xtestfile1:1 col 3: Line1'], l)
128 let l = split(execute('Xlist! -5,-3', ''), "\n")
130 \ ' 3: non-error 2', ' 4 Xtestfile2:2 col 2: Line2'], l)
133 let l = split(execute('Xlist! +2', ''), "\n")
135 \ ' 3: non-error 2', ' 4 Xtestfile2:2 col 2: Line2'], l)
144 let l = split(execute('Xlist', ""), "\n")
150 \ ' 6:60-65 col 25-35: Line6'], l)
158 let l = split(execute('Xlist', ""), "\n")
163 \ ' 5:50 col 25 55: one'], l)
170 let l = split(execute('Xlist', ""), "\n")
173 \ ' 3 Data/Text.hs:30 col 15 warning 33: FileWarning'], l)
178 let l = split(execute('Xlist 1', ''), "\n")
179 call assert_match('^ 1 [^\\/]\{-}:', l[0])
187 call XlistTests('l')
196 if a:cchar == 'l'
219 let l = g:Xgetlist()
220 call assert_equal('Line2', l[0].text)
224 let l = g:Xgetlist()
225 call assert_equal('Line3', l[0].text)
229 let l = g:Xgetlist()
230 call assert_equal('Line1', l[0].text)
233 let l = g:Xgetlist()
234 call assert_equal('Line3', l[0].text)
239 call XageTests('l')
248 if a:cchar == 'l'
337 call XwindowTests('l')
371 let l = g:Xgetlist()
372 call assert_true(len(l) == 2 &&
373 \ l[0].lnum == 700 && l[0].col == 10 && l[0].text ==# 'Line 700' &&
374 \ l[1].lnum == 800 && l[1].col == 15 && l[1].text ==# 'Line 800')
387 let l = g:Xgetlist()
388 call assert_true(len(l) == 3 &&
389 \ l[2].lnum == 900 && l[2].col == 30 && l[2].text ==# 'Line 900')
396 let l = g:Xgetlist()
397 call assert_true(len(l) == 2 &&
398 \ l[0].lnum == 222 && l[0].col == 77 && l[0].text ==# 'Line 222' &&
399 \ l[1].lnum == 333 && l[1].col == 88 && l[1].text ==# 'Line 333')
413 call XfileTests('l')
425 let l = g:Xgetlist()
426 call assert_true(len(l) == 2 &&
427 \ l[0].lnum == 700 && l[0].col == 10 && l[0].text ==# 'Line 700' &&
428 \ l[1].lnum == 800 && l[1].col == 15 && l[1].text ==# 'Line 800')
434 let l = g:Xgetlist()
435 call assert_true(len(l) == 2 &&
436 \ l[0].lnum == 900 && l[0].col == 55 && l[0].text ==# 'Line 900' &&
437 \ l[1].lnum == 950 && l[1].col == 66 && l[1].text ==# 'Line 950')
443 let l = g:Xgetlist()
444 call assert_true(len(l) == 4 &&
445 \ l[1].lnum == 950 && l[1].col == 66 && l[1].text ==# 'Line 950' &&
446 \ l[2].lnum == 700 && l[2].col == 20 && l[2].text ==# 'Line 700' &&
447 \ l[3].lnum == 750 && l[3].col == 25 && l[3].text ==# 'Line 750')
471 call XbufferTests('l')
482 call XexprTests('l')
613 call Xtest_browse('l')
694 if a:cchar == 'l'
718 call s:test_xhelpgrep('l')
744 var l = getqflist()
745 assert_equal(1, l->len())
746 assert_equal(95, l[0].lnum)
747 assert_equal('error', l[0].text)
751 l = getqflist()
752 assert_equal(2, l->len())
753 assert_equal(77, l[1].lnum)
754 assert_equal('warning', l[1].text)
810 let l = g:Xgetlist()
812 call setqflist(l, 'r')
814 call setloclist(0, l, 'r')
830 call XqfTitleTests('l')
838 let l = strtrans(string(map(getqflist(), '[v:val.text, v:val.valid]')))
839 call assert_equal("[['W', 1], ['E^@CCCC', 1]]", l)
841 let l = strtrans(string(map(getqflist(), '[v:val.text, v:val.valid]')))
842 call assert_equal("[['W', 1], ['E^@CCCC', 1]]", l)
844 let l = strtrans(string(map(getqflist(), '[v:val.text, v:val.valid]')))
845 call assert_equal("[['W', 1], ['ZZZZ', 0], ['E^@CCCC', 1], ['YYYY', 0]]", l)
999 let l =<< trim [DATA]
1035 call writefile(l, 'Xerrorfile1')
1036 call writefile(l[:-2], 'Xerrorfile2')
1064 set efm+==%f=\\,\ line\ %l%*\\D%v%*[^\ ]\ %m
1065 set efm^=%AError\ in\ \"%f\"\ at\ line\ %l:,%Z%p^,%C%m
1117 set efm=%DEntering\ dir\ '%f',%f:%l:%m,%XLeaving\ dir\ '%f'
1135 for l in lines
1136 Xaddexpr l
1185 call s:dir_stack_tests('l')
1199 \ '%Eerror %m %l,' .
1200 \ '%-Wignored %m %l,' .
1201 \ '%+Cmore ignored %m %l,' .
1204 let l = map(g:Xgetlist(), '[v:val.text, v:val.valid, v:val.lnum, v:val.type]')
1205 call assert_equal([['resync', 1, 4, 'E']], l)
1212 call Xefm_ignore_continuations('l')
1221 set efm=%f:%l:%m,%f:%f:%l:%m
1224 set efm=%f:%l:%m,%f:%l:%r:%m
1227 set efm=%f:%l:%m,%O:%f:%l:%m
1230 set efm=%f:%l:%m,%f:%l:%*[^a-z
1233 set efm=%f:%l:%m,%f:%l:%*c
1236 set efm=%f:%l:%m,%L%M%N
1239 set efm=%f:%l:%m,%f:%l:%m:%R
1249 set efm=%DEntering\ dir\ abc,%f:%l:%m
1257 call Xinvalid_efm_Tests('l')
1269 let l = getqflist()
1270 call assert_equal('^\VLine search text\$', l[0].pattern)
1271 call assert_equal(0, l[0].lnum)
1273 let l = split(execute('clist', ''), "\n")
1274 call assert_equal([' 1 Xtestfile:^\VLine search text\$: '], l)
1278 let l = getqflist()
1279 call assert_equal('^\V' . repeat('a', 1019) . '\$', l[0].pattern)
1299 set efm=%+P[%f]%r,(%l\\,%c)%*[\ ]%t%*[^:]:\ %m,%+Q--%r
1306 for l in lines
1307 caddexpr l
1309 let l = getqflist()
1310 call assert_equal(12, len(l))
1311 call assert_equal(21, l[2].lnum)
1312 call assert_equal(2, l[2].col)
1313 call assert_equal('w', l[2].type)
1314 call assert_equal('e', l[3].type)
1321 let l = getqflist()
1322 call assert_equal(14, len(l))
1323 call assert_equal('[Xtestfile1]', l[0].text)
1324 call assert_equal('[Xtestfile2]', l[6].text)
1325 call assert_equal('[Xtestfile3]', l[9].text)
1335 set efm=%EError\ %n,%Cline\ %l,%Ccolumn\ %c,%Z%m
1337 let l = getqflist()
1338 call assert_equal(275, l[0].nr)
1339 call assert_equal(42, l[0].lnum)
1340 call assert_equal(3, l[0].col)
1341 call assert_equal('E', l[0].type)
1342 call assert_equal("\n' ' expected after '--'", l[0].text)
1350 set efm=unknown\ variable\ %m,%E%>Error\ in\ line\ %l\ of\ %f:,%Z%m
1352 let l = getqflist()
1353 call assert_equal(147, l[0].lnum)
1354 call assert_equal('E', l[0].type)
1355 call assert_equal("\nunknown variable 'i'", l[0].text)
1374 set efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%.%#,%Z%[%^\ ]%\\@=%t:%m
1376 let l = getqflist()
1377 call assert_equal(8, len(l))
1378 call assert_equal(89, l[4].lnum)
1379 call assert_equal(1, l[4].valid)
1380 call assert_equal('unittests/dbfacadeTest.py', bufname(l[4].bufnr))
1381 call assert_equal('W', l[4].type)
1384 set efm=%f(%o):%l\ %m
1387 let l = getqflist()
1388 call assert_equal(1, len(l), string(l))
1389 call assert_equal('Language.PureScript.Types', l[0].module)
1400 let l = getqflist()
1401 call assert_equal(repeat('m', 1024), l[0].module)
1402 call assert_equal(15, l[0].lnum)
1403 call assert_equal('message', l[0].text)
1408 let l = getqflist()
1409 call assert_equal(1, len(l), string(l))
1410 call assert_equal('msg1', l[0].text)
1413 let l = getloclist(0)
1414 call assert_equal(1, len(l), string(l))
1415 call assert_equal('msg2', l[0].text)
1419 let l = getqflist()
1420 call assert_equal(1, len(l), string(l))
1421 call assert_equal('|| msg2', l[0].text)
1425 let l=getqflist({'lines' : ['Xtest:FOO10:Line 20'], 'efm':'%f:foo%l:%m'})
1426 call assert_equal(10, l.items[0].lnum)
1427 call assert_equal('Line 20', l.items[0].text)
1439 set efm=%f:%l:%t:%m
1451 set efm=%f:%l:%t:%n:%m
1499 call XquickfixChangedByAutocmd('l')
1551 let l = g:Xgetlist()
1552 call assert_equal(2, len(l))
1553 call assert_equal(2, l[1].lnum)
1554 call assert_equal(3, l[1].end_lnum)
1555 call assert_equal(4, l[1].col)
1556 call assert_equal(5, l[1].end_col)
1560 let l = g:Xgetlist()
1561 call assert_equal(3, len(l))
1577 let l = g:Xgetlist()
1578 call assert_equal(3, len(l))
1579 call assert_equal(5, l[2].lnum)
1582 let l = g:Xgetlist()
1583 call assert_equal(0, len(l))
1589 let l = g:Xgetlist()
1590 call g:Xsetlist(l)
1598 let l = [{'bufnr' : a:bnum, 'lnum' : 1, 'text' : '1', 'valid' : 0},
1600 call g:Xsetlist(l)
1608 call g:Xsetlist(l, 'a')
1621 let l = g:Xgetlist()
1622 call g:Xsetlist(l)
1641 call SetXlistTests('l', bnum)
1673 call Xlist_empty_middle('l')
1701 call Xlist_empty_older('l')
1792 call XquickfixSetListWithAct('l')
1796 let l = g:Xgetlist()
1798 call assert_equal(4, len(l))
1799 call assert_equal(1, l[0].lnum)
1800 call assert_equal(1, l[0].col)
1801 call assert_equal(1975, len(l[0].text))
1802 call assert_equal(2, l[1].lnum)
1803 call assert_equal(1, l[1].col)
1804 call assert_equal(4070, len(l[1].text))
1805 call assert_equal(3, l[2].lnum)
1806 call assert_equal(1, l[2].col)
1807 call assert_equal(4070, len(l[2].text))
1808 call assert_equal(4, l[3].lnum)
1809 call assert_equal(1, l[3].col)
1810 call assert_equal(10, len(l[3].text))
1840 call s:long_lines_tests('l')
1862 let l = []
1864 call add(l, 'Line' . i)
1866 call writefile(l, a:filename)
2037 let l = g:Xgetlist()
2038 call assert_equal(5, l[0].lnum)
2039 call assert_equal(6, l[2].lnum)
2040 call assert_equal(13, l[3].lnum)
2056 call Xadjust_qflnum('l')
2100 call s:test_xgrep('l')
2106 set efm=%DEntering\ dir\ '%f',%f:%l:%m,%XLeaving\ dir\ '%f'
2148 if a:cchar == 'l'
2167 call XbottomTests('l')
2197 let l = split(execute(a:cchar . 'hist'), "\n")
2198 call assert_equal('No entries', l[0])
2215 call HistoryTest('l')
2300 if a:cchar == 'l'
2331 if a:cchar == 'l'
2335 let l = [1]
2336 call setloclist(0, [], 'a', {'context':l})
2339 call add(l, 2)
2342 unlet! l
2359 let l = g:Xgetlist({'nr' : 1, 'context' : 1})
2360 call assert_equal([1], l.context)
2361 let l = g:Xgetlist({'nr' : 2, 'context' : 1})
2362 call assert_equal([2], l.context)
2363 let l = g:Xgetlist({'nr' : 3, 'context' : 1})
2364 call assert_equal([3], l.context)
2368 let l = ["red"]
2369 call g:Xsetlist([], ' ', {'context' : l})
2370 call add(l, "blue")
2373 call assert_equal(["red", "blue", "green"], l)
2375 unlet l
2388 let l = g:Xgetlist({'items':1})
2389 call assert_equal('F1', bufname(l.items[0].bufnr))
2390 call assert_equal(10, l.items[0].lnum)
2393 let l = g:Xgetlist({'items':1})
2394 call assert_equal('F2', bufname(l.items[2].bufnr))
2395 call assert_equal(30, l.items[2].lnum)
2397 let l = g:Xgetlist({'items':1})
2398 call assert_equal('F3', bufname(l.items[0].bufnr))
2399 call assert_equal(40, l.items[0].lnum)
2401 let l = g:Xgetlist({'items':1})
2402 call assert_equal(0, len(l.items))
2410 if a:cchar == 'l'
2480 call Xproperty_tests('l')
2530 call Xtest_setqfidx('l')
2552 let l = ['precexpr',
2567 call assert_equal(l, g:acmds)
2583 let l = ['precbuffer',
2592 call assert_equal(l, g:acmds)
2606 let l = ['precfile',
2624 call assert_equal(l, g:acmds)
2636 let l = ['prehelpgrep',
2650 call assert_equal(l, g:acmds)
2669 let l = ['pregrep',
2685 call assert_equal(l, g:acmds)
2748 call X('l')
2757 set efm=%f%%%l%%%m
2883 let l = g:Xgetlist()
2884 call assert_equal(2, len(l))
2885 call assert_equal('Editor:Notepad NOTEPAD', l[0].text)
2888 let l = g:Xgetlist()
2889 call assert_equal(2, len(l))
2890 call assert_equal(8, l[0].col)
2891 call assert_equal(11, l[0].end_col)
2892 call assert_equal(12, l[1].col)
2893 call assert_equal(15, l[1].end_col)
2896 let l = g:Xgetlist()
2897 call assert_equal(1, len(l))
2898 call assert_equal('Editor:VIM vim', l[0].text)
2902 let l = g:Xgetlist()
2904 call assert_equal('Editor:Emacs EmAcS', l[0].text)
2919 call XvimgrepTests('l')
2937 let l = getqflist()
2938 call assert_equal(2, len(l))
3042 if a:cchar == 'l'
3054 call XfreeTests('l')
3060 set efm=%f:%l:%m
3063 set efm=%+GCompiler:\ %.%#,%f:%l:%m
3066 set efm=%DEntering\ directory\ %f,%f:%l:%m
3098 call XsizeTests('l')
3256 call Xchangedtick_tests('l')
3267 let l = g:Xgetlist()
3268 call assert_equal(3, len(l))
3269 call assert_equal(20, l[1].lnum)
3270 call assert_equal('Line30', l[2].text)
3272 let l = g:Xgetlist()
3273 call assert_equal(1, len(l))
3274 call assert_equal('Line5', l[0].text)
3289 call g:Xsetlist([], ' ', {'efm' : '%f#%l#%m',
3292 call g:Xsetlist([], 'a', {'efm' : '%f#%l#%m', 'lines' : ["F3:30:L30"]})
3301 call Xsetexpr_tests('l')
3331 set efm=%DEntering\ dir\ '%f',%f:%l:%m,%XLeaving\ dir\ '%f'
3334 call Xmultidirstack_tests('l')
3362 let efm_val = 'Error\ l%l\ in\ %f,'
3363 let efm_val .= '%-P%>(%f%r,Error\ l%l\ in\ %m,%-Q)%r'
3364 let l = g:Xgetlist({'lines' : [
3372 call assert_equal(3, len(l.items))
3373 call assert_equal('one.txt', bufname(l.items[0].bufnr))
3374 call assert_equal(4, l.items[0].lnum)
3375 call assert_equal('one.txt', l.items[0].text)
3376 call assert_equal('two.txt', bufname(l.items[1].bufnr))
3377 call assert_equal(6, l.items[1].lnum)
3378 call assert_equal('two.txt', l.items[1].text)
3379 call assert_equal('one.txt', bufname(l.items[2].bufnr))
3380 call assert_equal(8, l.items[2].lnum)
3381 call assert_equal('', l.items[2].text)
3389 set efm=%+P[%f],(%l\\,%c)\ %m,%-Q
3392 call Xmultifilestack_tests('l')
3403 set efm=%f#%l#%m
3406 setlocal efm=%f-%l-%m
3411 let l = getqflist()
3412 call assert_equal(10, l[0].lnum)
3413 call assert_equal('Line20', l[1].text)
3442 let l = g:Xgetlist({'nr' : '$', 'all' : 1})
3443 call assert_equal(1, l.nr)
3444 call assert_equal('Test1', l.title)
3449 let l = g:Xgetlist({'nr' : '$', 'all' : 1})
3450 call assert_equal(1, l.nr)
3451 call assert_equal('Test2', l.title)
3456 let l = g:Xgetlist({'nr' : '$', 'all' : 1})
3457 call assert_equal(1, l.nr)
3458 call assert_equal('Test3', l.title)
3464 let l = g:Xgetlist({'nr' : '$', 'all' : 1})
3465 call assert_equal(1, l.nr)
3466 call assert_equal('Test4', l.title)
3473 let l = g:Xgetlist({'nr' : '$', 'all' : 1})
3474 call assert_equal(2, l.nr)
3475 call assert_equal('Test5', l.title)
3481 let l = g:Xgetlist({'nr' : '$', 'all' : 1})
3482 call assert_equal(lastqf + 1, l.nr)
3483 call assert_equal('Test6', l.title)
3490 let l = g:Xgetlist({'nr' : '$', 'all' : 1})
3491 call assert_equal(lastqf + 1, l.nr)
3492 call assert_equal('Test7', l.title)
3498 let l = g:Xgetlist({'nr' : '$', 'all' : 1})
3499 call assert_equal(10, l.nr)
3500 call assert_equal('Test8', l.title)
3518 call XaddQf_tests('l')
3527 let l = g:Xgetlist({'lines' : ["File2:20:Line20", "File2:30:Line30"]}).items
3528 call assert_equal(2, len(l))
3529 call assert_equal(30, l[1].lnum)
3538 let l = g:Xgetlist({'lines':['File3#30#Line30'], 'efm' : '%f#%l#%m'}).items
3539 call assert_equal('Line30', l[0].text)
3540 let l = g:Xgetlist({'lines':['File3:30:Line30'], 'efm' : '%f-%l-%m'}).items
3541 call assert_equal('File3:30:Line30', l[0].text)
3542 let l = g:Xgetlist({'lines':['File3:30:Line30'], 'efm' : [1,2]})
3543 call assert_equal({}, l)
3553 call XgetListFromLines('l')
3588 call Xqfid_tests('l')
3604 let l = []
3606 call add(l, {})
3608 let l[0].filename='F1'
3609 let l[0].pattern='Line1'
3610 let l[1].filename='F2'
3611 let l[1].pattern='Line1'
3612 let l[2].filename='F3'
3613 let l[2].pattern='Line1'
3614 let l[3].filename='F3'
3615 let l[3].lnum=1
3616 let l[3].col=9
3617 let l[3].vcol=1
3618 let l[4].filename='F3'
3619 let l[4].lnum=99
3620 let l[5].filename='F3'
3621 let l[5].lnum=1
3622 let l[5].col=99
3623 let l[5].vcol=1
3624 let l[6].filename='F3'
3625 let l[6].pattern='abcxyz'
3627 call g:Xsetlist([], ' ', {'items' : l})
3642 if a:cchar == 'l'
3685 call Xqfjump_tests('l')
3787 call Xgetlist_empty_tests('l')
3854 call Xqftick_tests('l')
3868 call Xtest_helpgrep_with_lang_specifier('l')
4053 let l = g:Xgetlist()
4054 call assert_equal('f1.txt', bufname(l[0].bufnr))
4055 call assert_equal('f2.txt', fnamemodify(bufname(l[2].bufnr), ':t'))
4070 call Xvimgrep_autocmd_cd('l')
4131 call setqflist([], ' ', {'lines':[fname . ":20:Line20"], 'efm':'%f:%l:%m'})
4139 call setqflist([], ' ', {'lines':[fname . ":20:Line20"], 'efm':'%f:%l:%m'})
4304 call Xexpr_acmd_freelist('l')
4314 let l = ['Xtestfile1:2:Line2', 'Xtestfile2:4:Line4']
4318 Xexpr l
4324 call writefile(l, 'Xerr')
4342 call Xjumpto_first_error_test('l')
4433 call Xautocmd_changelist('l')
4460 let l:win_count = winnr('$')
4462 call assert_equal(l:win_count, winnr('$'))
4468 call Xview_result_split_tests('l')
4487 let l = ['Xtestfile1:2:Line2', 'Xtestfile2:4:Line4']
4488 cgetexpr l
4504 lgetexpr l
4527 let l = getwininfo()
4528 call assert_equal([0, 0, 1], [l[0].quickfix, l[1].quickfix, l[2].quickfix])
4532 let l = getwininfo()
4533 call assert_equal([0, 0, 1], [l[0].quickfix, l[1].quickfix, l[2].quickfix])
4556 set efm=%f:%l:%v:%m
4583 set efm=%f:%l:%v:%m
4594 set efm=%E===\ %f\ ===,%C%l:%v,%Z%m
4601 set efm=%E===\ %f\ ===,%C%l:%c,%Z%m
4629 if a:cchar == 'l'
4685 call Xqfbuf_test('l')
4818 if a:cchar == 'l'
4892 call Xtest_below('l')
5012 call Xtest_qfcmd_abort('l')
5038 set efm=%DEntering\ dir\ %f,%XLeaving\ dir\ %f,%f:%l:%m
5092 let l = g:Xgetlist({'idx' : 2, 'items' : 0}).items
5093 call assert_equal(bufnr('F1'), l[0].bufnr)
5094 call assert_equal(20, l[0].lnum)
5095 call assert_equal('L20', l[0].text)
5103 call Xtest_getqflist_by_idx('l')
5114 let l = []
5125 call add(l, s)
5128 return l
5134 set efm=%f:%l:%c:%m
5168 let l = []
5170 call add(l, 'Line ' .. qfl[idx].lnum .. ', Col ' .. qfl[idx].col)
5172 return l
5275 call Xtest_qftextfunc('l')
5515 call Xqfbuf_update('l')
5533 let l = g:Xgetlist()
5534 call assert_equal(2, len(l))
5536 \ [bufname(l[0].bufnr), l[0].lnum, l[0].col, l[0].text])
5538 \ [bufname(l[1].bufnr), l[1].lnum, l[1].col, l[1].text])
5541 let l = g:Xgetlist()
5542 call assert_equal(3, len(l))
5544 \ [bufname(l[0].bufnr), l[0].lnum, l[0].col, l[0].text])
5546 \ [bufname(l[1].bufnr), l[1].lnum, l[1].col, l[1].text])
5548 \ [bufname(l[2].bufnr), l[2].lnum, l[2].col, l[2].text])
5551 let l = g:Xgetlist()
5552 call assert_equal(4, len(l))
5554 \ [bufname(l[0].bufnr), l[0].lnum, l[0].col, l[0].text])
5556 \ [bufname(l[1].bufnr), l[1].lnum, l[1].col, l[1].text])
5558 \ [bufname(l[2].bufnr), l[2].lnum, l[2].col, l[2].text])
5560 \ [bufname(l[3].bufnr), l[3].lnum, l[3].col, l[3].text])
5569 call Xvimgrep_fuzzy_match('l')