summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-09-22 21:35:19 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-22 21:35:19 +0100
commit69082916c8b5d321545d60b9f5facad0a2dd5a4e (patch)
tree2d690ea5c5be07ca71a0041abee131fa814e8e44 /src/eval.c
parentf87eeb43fb29f5e3d39807e6ce49e5e2d72eb38b (diff)
patch 9.0.0552: crash when using NUL in buffer that uses :sourcev9.0.0552
Problem: Crash when using NUL in buffer that uses :source. Solution: Don't get a next line when skipping over NL.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c
index 1f439701ed..77f0d7fb3c 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -253,7 +253,7 @@ eval_expr_typval(typval_T *expr, typval_T *argv, int argc, typval_T *rettv)
if (fc == NULL)
return FAIL;
- // Shortcut to call a compiled function without overhead.
+ // Shortcut to call a compiled function with minimal overhead.
r = call_def_function(partial->pt_func, argc, argv,
DEF_USE_PT_ARGV, partial, fc, rettv);
remove_funccal();
@@ -2291,7 +2291,7 @@ eval_next_non_blank(char_u *arg, evalarg_T *evalarg, int *getnext)
if (next != NULL)
{
- *getnext = TRUE;
+ *getnext = *p != NL;
return skipwhite(next);
}
}