Mercurial > vim
comparison src/eval.c @ 24063:d8f3a993dc9a v8.2.2573
patch 8.2.2573: Vim9: using inalid pointer for error message
Commit: https://github.com/vim/vim/commit/a974953443775dd938cf9a8c195e3de9e4514f4f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 6 18:18:19 2021 +0100
patch 8.2.2573: Vim9: using inalid pointer for error message
Problem: Vim9: using inalid pointer for error message.
Solution: Use the right pointer. (closes https://github.com/vim/vim/issues/7921)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 06 Mar 2021 18:30:02 +0100 |
parents | b535ab17d160 |
children | 0346a59ed5bf |
comparison
equal
deleted
inserted
replaced
24062:a29ffc423689 | 24063:d8f3a993dc9a |
---|---|
3128 /* | 3128 /* |
3129 * Get the second variable. | 3129 * Get the second variable. |
3130 */ | 3130 */ |
3131 if (evaluate && in_vim9script() && !IS_WHITE_OR_NUL((*arg)[1])) | 3131 if (evaluate && in_vim9script() && !IS_WHITE_OR_NUL((*arg)[1])) |
3132 { | 3132 { |
3133 error_white_both(p, 1); | 3133 error_white_both(*arg, 1); |
3134 clear_tv(rettv); | 3134 clear_tv(rettv); |
3135 return FAIL; | 3135 return FAIL; |
3136 } | 3136 } |
3137 *arg = skipwhite_and_linebreak(*arg + 1, evalarg); | 3137 *arg = skipwhite_and_linebreak(*arg + 1, evalarg); |
3138 if (eval7(arg, &var2, evalarg, FALSE) == FAIL) | 3138 if (eval7(arg, &var2, evalarg, FALSE) == FAIL) |