diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-07 00:40:33 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-07 00:44:53 -0400 |
commit | d109a331446a998671bf54655df99238e2f1b093 (patch) | |
tree | 9001c8df02ff46c4497ee1740924582926d6cc77 /src/nvim/eval.c | |
parent | 7ca5dc2519018c33def6bd6361d26099df04e7e2 (diff) | |
download | rneovim-d109a331446a998671bf54655df99238e2f1b093.tar.gz rneovim-d109a331446a998671bf54655df99238e2f1b093.tar.bz2 rneovim-d109a331446a998671bf54655df99238e2f1b093.zip |
vim-patch:8.1.1686: "*" of "*{" is recognized as multipy operator
Problem: "*" of "*{" is recognized as multipy operator. (Yasuhiro Matsumoto)
Solution: Check for the "{".
https://github.com/vim/vim/commit/2898ebb44cee62a70a11b44a97bdad8cc00157b1
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 70549b950d..16d51d3a81 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -3802,8 +3802,9 @@ static int eval6(char_u **arg, typval_T *rettv, int evaluate, int want_string) */ for (;; ) { op = **arg; - if (op != '*' && op != '/' && op != '%') + if ((op != '*' || (*arg)[1] == '{') && op != '/' && op != '%') { break; + } if (evaluate) { if (rettv->v_type == VAR_FLOAT) { |