ui_ti: nearentry(): remove redundant check - sacc - sacc(omys), simple console … | |
git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65… | |
Log | |
Files | |
Refs | |
Tags | |
LICENSE | |
--- | |
commit b9f7064a08d2e82307ab3d5a7824ce0bff038d66 | |
parent d9e3acbafabde9b6ee4d2abbe484b035ae8a20fc | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Sun, 25 Feb 2018 15:26:42 +0100 | |
ui_ti: nearentry(): remove redundant check | |
Diffstat: | |
M ui_ti.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/ui_ti.c b/ui_ti.c | |
@@ -418,7 +418,7 @@ nearentry(Item *entry, int direction) | |
lastitem = dir->nitems; | |
item = dir->curline + direction; | |
- for (; item >= 0 && item < lastitem; item += direction) { | |
+ for (; item < lastitem; item += direction) { | |
if (dir->items[item].type != 'i') | |
return item; | |
} |