Mercurial > vim
diff src/vim9compile.c @ 22260:d7c1e3efa88e v8.2.1679
patch 8.2.1679: Vim9: ":*" is not recognized as a range
Commit: https://github.com/vim/vim/commit/3bd8de40b484d3617a19092d3cc036f8b4f3d51c
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Sep 14 16:37:34 2020 +0200
patch 8.2.1679: Vim9: ":*" is not recognized as a range
Problem: Vim9: ":*" is not recognized as a range.
Solution: Move recognizing "*" into skip_range(). (closes https://github.com/vim/vim/issues/6838)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 14 Sep 2020 16:45:04 +0200 |
parents | 3d0632b260fd |
children | 23f5750146d9 |
line wrap: on
line diff
--- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -4276,7 +4276,7 @@ compile_return(char_u *arg, int set_retu } if (need_type(stack_type, cctx->ctx_ufunc->uf_ret_type, -1, cctx, FALSE) == FAIL) - return NULL; + return NULL; } } else @@ -6830,7 +6830,7 @@ compile_def_function(ufunc_T *ufunc, int cmd = ea.cmd; if (*cmd != '\'' || starts_with_colon) { - ea.cmd = skip_range(ea.cmd, NULL); + ea.cmd = skip_range(ea.cmd, TRUE, NULL); if (ea.cmd > cmd) { if (!starts_with_colon)