mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.1.2373: cannot build with +popupwin but without +quickfix
Problem: Cannot build with +popupwin but without +quickfix. (John Marriott)
Solution: Adjust #ifdefs.
5a4c3082d7
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
parent
30d09d8258
commit
0ff3187fb8
@ -3028,6 +3028,8 @@ func Test_autocmd_CmdWinEnter()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_autocmd_was_using_freed_memory()
|
func Test_autocmd_was_using_freed_memory()
|
||||||
|
CheckFeature quickfix
|
||||||
|
|
||||||
pedit xx
|
pedit xx
|
||||||
n x
|
n x
|
||||||
augroup winenter
|
augroup winenter
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
" Tests for the getbufinfo(), getwininfo() and gettabinfo() functions
|
" Tests for the getbufinfo(), getwininfo() and gettabinfo() functions
|
||||||
|
source check.vim
|
||||||
|
|
||||||
|
func Test_getbufwintabinfo()
|
||||||
|
CheckFeature quickfix
|
||||||
|
|
||||||
function Test_getbufwintabinfo()
|
|
||||||
edit Xtestfile1
|
edit Xtestfile1
|
||||||
edit Xtestfile2
|
edit Xtestfile2
|
||||||
let buflist = getbufinfo()
|
let buflist = getbufinfo()
|
||||||
@ -109,7 +112,7 @@ function Test_getbufwintabinfo()
|
|||||||
call assert_true(winlist[2].quickfix)
|
call assert_true(winlist[2].quickfix)
|
||||||
call assert_false(winlist[2].loclist)
|
call assert_false(winlist[2].loclist)
|
||||||
wincmd t | only
|
wincmd t | only
|
||||||
endfunction
|
endfunc
|
||||||
|
|
||||||
function Test_get_buf_options()
|
function Test_get_buf_options()
|
||||||
let opts = bufnr()->getbufvar('&')
|
let opts = bufnr()->getbufvar('&')
|
||||||
|
@ -1137,6 +1137,8 @@ func Test_edit_CTRL_V()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_edit_F1()
|
func Test_edit_F1()
|
||||||
|
CheckFeature quickfix
|
||||||
|
|
||||||
" Pressing <f1>
|
" Pressing <f1>
|
||||||
new
|
new
|
||||||
" call feedkeys(":set im\<cr>\<f1>\<c-l>", 'tnix')
|
" call feedkeys(":set im\<cr>\<f1>\<c-l>", 'tnix')
|
||||||
|
@ -124,6 +124,8 @@ func Test_win_execute()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_win_execute_update_ruler()
|
func Test_win_execute_update_ruler()
|
||||||
|
CheckFeature quickfix
|
||||||
|
|
||||||
enew
|
enew
|
||||||
call setline(1, range(500))
|
call setline(1, range(500))
|
||||||
20
|
20
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
" Test the :filter command modifier
|
" Test the :filter command modifier
|
||||||
|
|
||||||
|
source check.vim
|
||||||
|
|
||||||
func Test_filter()
|
func Test_filter()
|
||||||
edit Xdoesnotmatch
|
edit Xdoesnotmatch
|
||||||
edit Xwillmatch
|
edit Xwillmatch
|
||||||
@ -97,6 +99,8 @@ func Test_filter_cmd_with_filter()
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
func Test_filter_commands()
|
func Test_filter_commands()
|
||||||
|
CheckFeature quickfix
|
||||||
|
|
||||||
let g:test_filter_a = 1
|
let g:test_filter_a = 1
|
||||||
let b:test_filter_b = 2
|
let b:test_filter_b = 2
|
||||||
let test_filter_c = 3
|
let test_filter_c = 3
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
" Tests for 'makeencoding'.
|
" Tests for 'makeencoding'.
|
||||||
|
|
||||||
source shared.vim
|
source shared.vim
|
||||||
|
source check.vim
|
||||||
|
|
||||||
|
CheckFeature quickfix
|
||||||
let s:python = PythonProg()
|
let s:python = PythonProg()
|
||||||
if s:python == ''
|
if s:python == ''
|
||||||
throw 'Skipped: python program missing'
|
throw 'Skipped: python program missing'
|
||||||
|
@ -398,6 +398,8 @@ endfunc
|
|||||||
if has('terminal')
|
if has('terminal')
|
||||||
|
|
||||||
func Test_mksession_terminal_shell()
|
func Test_mksession_terminal_shell()
|
||||||
|
CheckFeature quickfix
|
||||||
|
|
||||||
terminal
|
terminal
|
||||||
mksession! Xtest_mks.out
|
mksession! Xtest_mks.out
|
||||||
let lines = readfile('Xtest_mks.out')
|
let lines = readfile('Xtest_mks.out')
|
||||||
@ -479,8 +481,10 @@ func Test_mksession_terminal_no_ssop()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_mksession_terminal_restore_other()
|
func Test_mksession_terminal_restore_other()
|
||||||
|
CheckFeature quickfix
|
||||||
|
|
||||||
terminal
|
terminal
|
||||||
call term_setrestore(bufnr('%'), 'other')
|
eval bufnr('%')->term_setrestore('other')
|
||||||
mksession! Xtest_mks.out
|
mksession! Xtest_mks.out
|
||||||
let lines = readfile('Xtest_mks.out')
|
let lines = readfile('Xtest_mks.out')
|
||||||
let term_cmd = ''
|
let term_cmd = ''
|
||||||
|
@ -1923,6 +1923,8 @@ func Test_normal24_rot13()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_normal25_tag()
|
func Test_normal25_tag()
|
||||||
|
CheckFeature quickfix
|
||||||
|
|
||||||
" Testing for CTRL-] g CTRL-] g]
|
" Testing for CTRL-] g CTRL-] g]
|
||||||
" CTRL-W g] CTRL-W CTRL-] CTRL-W g CTRL-]
|
" CTRL-W g] CTRL-W CTRL-] CTRL-W g CTRL-]
|
||||||
h
|
h
|
||||||
|
@ -501,6 +501,8 @@ endfunc
|
|||||||
" Test that 'completefunc' on Scratch buffer with preview window works when
|
" Test that 'completefunc' on Scratch buffer with preview window works when
|
||||||
" it's OK.
|
" it's OK.
|
||||||
func Test_completefunc_with_scratch_buffer()
|
func Test_completefunc_with_scratch_buffer()
|
||||||
|
CheckFeature quickfix
|
||||||
|
|
||||||
new +setlocal\ buftype=nofile\ bufhidden=wipe\ noswapfile
|
new +setlocal\ buftype=nofile\ bufhidden=wipe\ noswapfile
|
||||||
set completeopt+=preview
|
set completeopt+=preview
|
||||||
setlocal completefunc=DummyCompleteFive
|
setlocal completefunc=DummyCompleteFive
|
||||||
@ -710,14 +712,13 @@ func Test_popup_and_window_resize()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_popup_and_preview_autocommand()
|
func Test_popup_and_preview_autocommand()
|
||||||
|
CheckFeature python
|
||||||
|
CheckFeature quickfix
|
||||||
|
if winheight(0) < 15
|
||||||
|
throw 'Skipped: window height insufficient'
|
||||||
|
endif
|
||||||
|
|
||||||
" This used to crash Vim
|
" This used to crash Vim
|
||||||
if !has('python')
|
|
||||||
return
|
|
||||||
endif
|
|
||||||
let h = winheight(0)
|
|
||||||
if h < 15
|
|
||||||
return
|
|
||||||
endif
|
|
||||||
new
|
new
|
||||||
augroup MyBufAdd
|
augroup MyBufAdd
|
||||||
au!
|
au!
|
||||||
@ -821,9 +822,8 @@ func Test_balloon_split()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_popup_position()
|
func Test_popup_position()
|
||||||
if !CanRunVimInTerminal()
|
CheckScreendump
|
||||||
return
|
|
||||||
endif
|
|
||||||
let lines =<< trim END
|
let lines =<< trim END
|
||||||
123456789_123456789_123456789_a
|
123456789_123456789_123456789_a
|
||||||
123456789_123456789_123456789_b
|
123456789_123456789_123456789_b
|
||||||
|
@ -4,6 +4,8 @@ source screendump.vim
|
|||||||
source check.vim
|
source check.vim
|
||||||
|
|
||||||
function Test_tabpage()
|
function Test_tabpage()
|
||||||
|
CheckFeature quickfix
|
||||||
|
|
||||||
bw!
|
bw!
|
||||||
" Simple test for opening and closing a tab page
|
" Simple test for opening and closing a tab page
|
||||||
tabnew
|
tabnew
|
||||||
@ -273,6 +275,8 @@ function Test_tabpage_with_autocmd_tab_drop()
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function Test_tabpage_with_tab_modifier()
|
function Test_tabpage_with_tab_modifier()
|
||||||
|
CheckFeature quickfix
|
||||||
|
|
||||||
for n in range(4)
|
for n in range(4)
|
||||||
tabedit
|
tabedit
|
||||||
endfor
|
endfor
|
||||||
|
@ -508,6 +508,8 @@ func Test_equalalways_on_close()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_win_screenpos()
|
func Test_win_screenpos()
|
||||||
|
CheckFeature quickfix
|
||||||
|
|
||||||
call assert_equal(1, winnr('$'))
|
call assert_equal(1, winnr('$'))
|
||||||
split
|
split
|
||||||
vsplit
|
vsplit
|
||||||
|
Loading…
Reference in New Issue
Block a user