summaryrefslogtreecommitdiff
path: root/src/job.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2021-07-21 19:09:09 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-21 19:09:09 +0200
commitcd9172077bc8c0aafddf2e5367cc0ae2c00c8ff7 (patch)
treed460cabb1f58286f763089e7a9552be6c21059f3 /src/job.c
parent189663bdac1156237c49925f77bd197c1bdea12c (diff)
downloadvim-git-cd9172077bc8c0aafddf2e5367cc0ae2c00c8ff7.tar.gz
patch 8.2.3194: Vim9: argument types are not checked at compile timev8.2.3194
Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks, simplify some. (Yegappan Lakshmanan, closes #8598)
Diffstat (limited to 'src/job.c')
-rw-r--r--src/job.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/job.c b/src/job.c
index 7607f7be5..89d7756bc 100644
--- a/src/job.c
+++ b/src/job.c
@@ -1726,7 +1726,7 @@ f_prompt_setprompt(typval_T *argvars, typval_T *rettv UNUSED)
char_u *text;
if (in_vim9script()
- && (check_for_string_or_number_arg(argvars, 0) == FAIL
+ && (check_for_buffer_arg(argvars, 0) == FAIL
|| check_for_string_arg(argvars, 1) == FAIL))
return;