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:
8522ecc
)
Only split the tree view when the tree view is visible
author
Jonas Fonseca
<fonseca@diku.dk>
Mon, 11 Sep 2006 22:22:42 +0000
(
00:22
+0200)
committer
Jonas Fonseca
<fonseca@antimatter.localdomain>
Mon, 11 Sep 2006 22:22:42 +0000
(
00:22
+0200)
tig.c
patch
|
blob
|
blame
|
history
diff --git
a/tig.c
b/tig.c
index 72d57cc4dc94fc6d8321ebb6fc6918a71aabba8c..384fe213809795fde80895612896ce9f25d927ed 100644
(file)
--- a/
tig.c
+++ b/
tig.c
@@
-2557,7
+2557,7
@@
tree_read(struct view *view, char *text)
static bool
tree_enter(struct view *view, struct line *line)
{
static bool
tree_enter(struct view *view, struct line *line)
{
- enum open_flags flags = OPEN_DEFAULT;
+ enum open_flags flags =
display[0] == view ? OPEN_SPLIT :
OPEN_DEFAULT;
char *data = line->data;
enum request request;
char *data = line->data;
enum request request;
@@
-2592,10
+2592,6
@@
tree_enter(struct view *view, struct line *line)
break;
case LINE_TREE_FILE:
break;
case LINE_TREE_FILE:
- /* This causes the blob view to become split, and not having it
- * in the tree dir case will make the blob view automatically
- * disappear when moving to a different directory. */
- flags |= OPEN_SPLIT;
request = REQ_VIEW_BLOB;
break;
request = REQ_VIEW_BLOB;
break;