mirror of
https://github.com/neovim/neovim.git
synced 2025-01-01 17:23:36 -07:00
eval: Reorder checks in var_shada_iter
This commit is contained in:
parent
c57c569000
commit
aa4d0bb728
@ -20903,9 +20903,9 @@ const void *var_shada_iter(const void *const iter, const char **const name,
|
|||||||
*name = NULL;
|
*name = NULL;
|
||||||
if (iter == NULL) {
|
if (iter == NULL) {
|
||||||
hi = globvarht.ht_array;
|
hi = globvarht.ht_array;
|
||||||
while ((HASHITEM_EMPTY(hi)
|
while ((size_t) (hi - hifirst) < hinum
|
||||||
|| var_flavour(HI2DI(hi)->di_key) != VAR_FLAVOUR_SHADA)
|
&& (HASHITEM_EMPTY(hi)
|
||||||
&& (size_t) (hi - hifirst) < hinum) {
|
|| var_flavour(HI2DI(hi)->di_key) != VAR_FLAVOUR_SHADA)) {
|
||||||
hi++;
|
hi++;
|
||||||
}
|
}
|
||||||
if (HASHITEM_EMPTY(hi)
|
if (HASHITEM_EMPTY(hi)
|
||||||
|
Loading…
Reference in New Issue
Block a user