0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.0552: crash when using NUL in buffer that uses :source

Problem:    Crash when using NUL in buffer that uses :source.
Solution:   Don't get a next line when skipping over NL.
This commit is contained in:
Bram Moolenaar
2022-09-22 21:35:19 +01:00
parent f87eeb43fb
commit 69082916c8
3 changed files with 21 additions and 2 deletions

View File

@@ -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);
}
}