mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 20:38:18 +00:00
fix lint error
This commit is contained in:
@@ -5166,12 +5166,14 @@ dict_equal (
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (d1 == NULL || d2 == NULL) {
|
if (d1 == NULL || d2 == NULL) {
|
||||||
return FALSE;
|
return false;
|
||||||
|
}
|
||||||
|
if (d1 == d2) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (dict_len(d1) != dict_len(d2)) {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
if (d1 == d2)
|
|
||||||
return TRUE;
|
|
||||||
if (dict_len(d1) != dict_len(d2))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
todo = (int)d1->dv_hashtab.ht_used;
|
todo = (int)d1->dv_hashtab.ht_used;
|
||||||
for (hi = d1->dv_hashtab.ht_array; todo > 0; ++hi) {
|
for (hi = d1->dv_hashtab.ht_array; todo > 0; ++hi) {
|
||||||
@@ -10074,7 +10076,7 @@ static void f_getbufvar(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
|||||||
} else if (STRCMP(varname, "changedtick") == 0) {
|
} else if (STRCMP(varname, "changedtick") == 0) {
|
||||||
rettv->v_type = VAR_NUMBER;
|
rettv->v_type = VAR_NUMBER;
|
||||||
rettv->vval.v_number = curbuf->b_changedtick;
|
rettv->vval.v_number = curbuf->b_changedtick;
|
||||||
done = TRUE;
|
done = true;
|
||||||
} else {
|
} else {
|
||||||
/* Look up the variable. */
|
/* Look up the variable. */
|
||||||
/* Let getbufvar({nr}, "") return the "b:" dictionary. */
|
/* Let getbufvar({nr}, "") return the "b:" dictionary. */
|
||||||
|
Reference in New Issue
Block a user