mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
vim-patch:8.1.1686: "*" of "*{" is recognized as multipy operator
Problem: "*" of "*{" is recognized as multipy operator. (Yasuhiro Matsumoto)
Solution: Check for the "{".
2898ebb44c
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user