summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 436674f)
raw | patch | inline | side by side (parent: 436674f)
author | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 17 Feb 2009 03:07:28 +0000 (04:07 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 17 Feb 2009 11:55:23 +0000 (12:55 +0100) |
It was broken by the move to the annotated tree view.
NEWS | patch | blob | history | |
tig.c | patch | blob | history |
index 58aafed3554ab75d04a3d58597fd9840399a10e1..eff874a7655dee2c201f5282c129274f3965c468 100644 (file)
--- a/NEWS
+++ b/NEWS
Release notes
=============
+tig master
+---------
+
+Bug fixes:
+
+ - Tree view: fix searching.
+
tig-0.14.1
----------
index ec31d49c8fce1956550b10d586aac6c6a1c8af60..74be272a673cd1edb1a17643f4acb377231441e6 100644 (file)
--- a/tig.c
+++ b/tig.c
return REQ_NONE;
}
+static bool
+tree_grep(struct view *view, struct line *line)
+{
+ struct tree_entry *entry = line->data;
+ const char *text[] = {
+ entry->name,
+ opt_author ? entry->author : "",
+ opt_date ? mkdate(&entry->time) : "",
+ NULL
+ };
+
+ return grep_text(view, text);
+}
+
static void
tree_select(struct view *view, struct line *line)
{
tree_read,
tree_draw,
tree_request,
- pager_grep,
+ tree_grep,
tree_select,
};