diff options
Diffstat (limited to 'src/if_cscope.c')
-rw-r--r-- | src/if_cscope.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/if_cscope.c b/src/if_cscope.c index 815db55c1..4e313cebc 100644 --- a/src/if_cscope.c +++ b/src/if_cscope.c @@ -2496,6 +2496,14 @@ f_cscope_connection(typval_T *argvars UNUSED, typval_T *rettv UNUSED) char_u *prepend = NULL; char_u buf[NUMBUFLEN]; + if (in_vim9script() + && (check_for_opt_number_arg(argvars, 0) == FAIL + || (argvars[0].v_type != VAR_UNKNOWN + && (check_for_opt_string_arg(argvars, 1) == FAIL + || (argvars[1].v_type != VAR_UNKNOWN + && check_for_opt_string_arg(argvars, 2) == FAIL))))) + return; + if (argvars[0].v_type != VAR_UNKNOWN && argvars[1].v_type != VAR_UNKNOWN) { |