Mercurial > vim
changeset 23340:8e0d6f355a5a v8.2.2213
patch 8.2.2213: checking white space around -> is not backwards compatible
Commit: https://github.com/vim/vim/commit/7cfcd0c99c485a973d8cbff939531e430ad77f55
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 25 16:11:53 2020 +0100
patch 8.2.2213: checking white space around -> is not backwards compatible
Problem: Checking white space around -> is not backwards compatible.
Solution: Only check white space around =>.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 25 Dec 2020 16:15:03 +0100 |
parents | 8dd52102986c |
children | 5e6a630d9bc1 |
files | src/userfunc.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/userfunc.c +++ b/src/userfunc.c @@ -570,7 +570,7 @@ get_lambda_tv( &varargs, NULL, FALSE, NULL, NULL); if (ret == FAIL || (s = skip_arrow(*arg, equal_arrow, &ret_type, - &white_error)) == NULL) + equal_arrow ? &white_error : NULL)) == NULL) { if (types_optional) ga_clear_strings(&argtypes);