diff options
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r-- | src/vim9compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c index d505ca670..e4f3a906e 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -4360,7 +4360,7 @@ exarg_getline( for (;;) { - if (cctx->ctx_lnum == cctx->ctx_ufunc->uf_lines.ga_len) + if (cctx->ctx_lnum >= cctx->ctx_ufunc->uf_lines.ga_len - 1) return NULL; ++cctx->ctx_lnum; p = ((char_u **)cctx->ctx_ufunc->uf_lines.ga_data)[cctx->ctx_lnum]; |