// hit-enter prompt.
static int start_message_win_timer = FALSE;
-static int popup_on_cmdline = FALSE;
-
static void may_start_message_win_timer(win_T *wp);
#endif
+static int popup_on_cmdline = FALSE;
+
static void popup_adjust_position(win_T *wp);
/*
}
}
-/*
- * Returns TRUE if a popup extends into the cmdline area.
- */
- int
-popup_overlaps_cmdline(void)
-{
- return popup_on_cmdline;
-}
-
/*
* Close any info popup.
*/
}
#endif
+/*
+ * Returns TRUE if a popup extends into the cmdline area.
+ */
+ int
+popup_overlaps_cmdline(void)
+{
+ return popup_on_cmdline;
+}
+
#if defined(HAS_MESSAGE_WINDOW) || defined(PROTO)
/*
enddef
def Test_get()
+ CheckFeature quickfix
v9.CheckSourceDefAndScriptFailure(['get("a", 1)'], ['E1013: Argument 1: type mismatch, expected list<any> but got string', 'E1531: Argument of get() must be a List, Tuple, Dictionary or Blob'])
[3, 5, 2]->get(1)->assert_equal(5)
[3, 5, 2]->get(3)->assert_equal(0)
enddef
def Test_getloclist()
+ CheckFeature quickfix
v9.CheckSourceDefAndScriptFailure(['getloclist("x")'], ['E1013: Argument 1: type mismatch, expected number but got string', 'E1210: Number required for argument 1'])
v9.CheckSourceDefAndScriptFailure(['getloclist(1, [])'], ['E1013: Argument 2: type mismatch, expected dict<any> but got list<any>', 'E1206: Dictionary required for argument 2'])
enddef
def Test_getloclist_return_type()
+ CheckFeature quickfix
var l = getloclist(1)
l->assert_equal([])
enddef
def Test_getqflist()
+ CheckFeature quickfix
v9.CheckSourceDefAndScriptFailure(['getqflist([])'], ['E1013: Argument 1: type mismatch, expected dict<any> but got list<any>', 'E1206: Dictionary required for argument 1'])
call assert_equal({}, getqflist({}))
enddef
def Test_getqflist_return_type()
+ CheckFeature quickfix
var l = getqflist()
l->assert_equal([])
" Test for the 'previewpopup' option
def Test_previewpopup()
+ CheckFeature quickfix
set previewpopup=height:10,width:60
pedit Xppfile
s:check_previewpopup('Xppfile')
enddef
def Test_previewpopup_pbuffer()
+ CheckFeature quickfix
set previewpopup=height:10,width:60
edit Xppfile
pbuffer
enddef
def Test_disassemble_cexpr()
+ CheckFeature quickfix
var res = execute('disass s:Cexpr')
assert_match('<SNR>\d*_Cexpr.*' ..
' var errors = "list of errors"\_s*' ..
enddef
def Test_expr9_option()
+ CheckFeature quickfix
var lines =<< trim END
# option
set ts=11
enddef
def Test_expr9_method_call()
+ CheckFeature quickfix
var lines =<< trim END
new
setline(1, ['first', 'last'])
enddef
def Test_partial_call()
+ CheckFeature quickfix
var lines =<< trim END
var Xsetlist: func
Xsetlist = function('setloclist', [0])
enddef
def Test_cexpr_errmsg_line_number()
+ CheckFeature quickfix
var lines =<< trim END
vim9script
def Func()
enddef
def Test_import_in_filetype()
+ CheckFeature quickfix
# check that :import works when the buffer is locked
mkdir('ftplugin', 'pR')
var export_lines =<< trim END
enddef
def Test_cnext_works_in_catch()
+ CheckFeature quickfix
var lines =<< trim END
vim9script
au BufEnter * eval 1 + 2
enddef
def Test_cexpr_vimscript()
+ CheckFeature quickfix
# only checks line continuation
set errorformat=File\ %f\ line\ %l
var lines =<< trim END
endfunc
def Test_vim9_copen()
+ CheckFeature quickfix
# this was giving an error for setting w:quickfix_title
copen
quit
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1248,
/**/
1247,
/**/