summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 4c902fb..3c8450f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -847,8 +847,9 @@ select_tag(const wchar_t *query)
struct link *iter;
int index;
- index = 0;
+ index = -1;
for (LIST_ITER(&tags, iter)) {
+ index += 1;
tag = UPCAST(iter, struct tag);
if (wcsstr(tag->name, query)) {
listnav_update_sel(&tag_nav, index);