mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.0.1401: condition is always true (#22638)
Problem: Condition is always true.
Solution: Remove the condition. (closes vim/vim#12139)
c481ad38f0
This commit is contained in:
parent
9d574f8dd7
commit
714f6bf249
@ -6951,14 +6951,12 @@ int handle_subscript(const char **const arg, typval_T *rettv, int evaluate, int
|
|||||||
tv_dict_unref(selfdict);
|
tv_dict_unref(selfdict);
|
||||||
selfdict = NULL;
|
selfdict = NULL;
|
||||||
} else if (**arg == '-') {
|
} else if (**arg == '-') {
|
||||||
if (ret == OK) {
|
if ((*arg)[2] == '{') {
|
||||||
if ((*arg)[2] == '{') {
|
// expr->{lambda}()
|
||||||
// expr->{lambda}()
|
ret = eval_lambda((char **)arg, rettv, evaluate, verbose);
|
||||||
ret = eval_lambda((char **)arg, rettv, evaluate, verbose);
|
} else {
|
||||||
} else {
|
// expr->name()
|
||||||
// expr->name()
|
ret = eval_method((char **)arg, rettv, evaluate, verbose);
|
||||||
ret = eval_method((char **)arg, rettv, evaluate, verbose);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else { // **arg == '[' || **arg == '.'
|
} else { // **arg == '[' || **arg == '.'
|
||||||
tv_dict_unref(selfdict);
|
tv_dict_unref(selfdict);
|
||||||
|
Loading…
Reference in New Issue
Block a user