forked from aniani/vim
patch 7.4.1997
Problem: Cannot easily scroll the quickfix window. Solution: Add ":cbottom".
This commit is contained in:
@@ -1414,3 +1414,16 @@ echo string(loc_two)
|
||||
call delete('Xone', 'rf')
|
||||
call delete('Xtwo', 'rf')
|
||||
endfunc
|
||||
|
||||
function Test_cbottom()
|
||||
call setqflist([{'filename': 'foo', 'lnum': 42}])
|
||||
copen
|
||||
let wid = win_getid()
|
||||
call assert_equal(1, line('.'))
|
||||
wincmd w
|
||||
call setqflist([{'filename': 'var', 'lnum': 24}], 'a')
|
||||
cbottom
|
||||
call win_gotoid(wid)
|
||||
call assert_equal(2, line('.'))
|
||||
cclose
|
||||
endfunc
|
||||
|
||||
Reference in New Issue
Block a user