chiark
/
gitweb
/
~mdw
/
tig
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
73c76ef
)
Oops, always update the tree view ref
author
Jonas Fonseca
<fonseca@diku.dk>
Tue, 12 Sep 2006 00:23:16 +0000
(
02:23
+0200)
committer
Jonas Fonseca
<fonseca@antimatter.localdomain>
Tue, 12 Sep 2006 00:23:16 +0000
(
02:23
+0200)
tig.c
patch
|
blob
|
blame
|
history
diff --git
a/tig.c
b/tig.c
index 6236bf310104280d4c53864d1beb5ed8ec4e305a..0a86490272750de255b7d99a530eba9d39fcf12c 100644
(file)
--- a/
tig.c
+++ b/
tig.c
@@
-2617,9
+2617,11
@@
tree_select(struct view *view, struct line *line)
* be in sync. */
string_copy(VIEW(REQ_VIEW_BLOB)->ref, ref_blob);
* be in sync. */
string_copy(VIEW(REQ_VIEW_BLOB)->ref, ref_blob);
- } else if (line->type
=
= LINE_TREE_DIR) {
-
string_ncopy(view->ref, text, 40)
;
+ } else if (line->type
!
= LINE_TREE_DIR) {
+
return
;
}
}
+
+ string_ncopy(view->ref, text, 40);
}
static struct view_ops tree_ops = {
}
static struct view_ops tree_ops = {