Fossil SCM

Disable the timeline graph when using search mode. Ticket [6166fbed08].

drh 2010-03-07 12:44 trunk
Commit 4276853ef88cdf57ea21e493c43cf5fc1ac77e86
1 file changed +4 -1
+4 -1
--- src/timeline.c
+++ src/timeline.c
@@ -698,11 +698,11 @@
698698
if( zType[0]=='a' ){
699699
tmFlags = TIMELINE_BRIEF | TIMELINE_GRAPH;
700700
}else{
701701
tmFlags = TIMELINE_GRAPH;
702702
}
703
- if( P("ng")!=0 ){
703
+ if( P("ng")!=0 || zSearch!=0 ){
704704
tmFlags &= ~TIMELINE_GRAPH;
705705
}
706706
707707
style_header("Timeline");
708708
login_anonymous_available();
@@ -891,10 +891,13 @@
891891
}else if( zBefore ){
892892
blob_appendf(&desc, " occurring on or before %h.<br>", zBefore);
893893
}else if( zCirca ){
894894
blob_appendf(&desc, " occurring around %h.<br>", zCirca);
895895
}
896
+ if( zSearch ){
897
+ blob_appendf(&desc, " matching \"%h\"", zSearch);
898
+ }
896899
if( g.okHistory ){
897900
if( zAfter || n==nEntry ){
898901
zDate = db_text(0, "SELECT min(timestamp) FROM timeline");
899902
timeline_submenu(&url, "Older", "b", zDate, "a");
900903
free(zDate);
901904
--- src/timeline.c
+++ src/timeline.c
@@ -698,11 +698,11 @@
698 if( zType[0]=='a' ){
699 tmFlags = TIMELINE_BRIEF | TIMELINE_GRAPH;
700 }else{
701 tmFlags = TIMELINE_GRAPH;
702 }
703 if( P("ng")!=0 ){
704 tmFlags &= ~TIMELINE_GRAPH;
705 }
706
707 style_header("Timeline");
708 login_anonymous_available();
@@ -891,10 +891,13 @@
891 }else if( zBefore ){
892 blob_appendf(&desc, " occurring on or before %h.<br>", zBefore);
893 }else if( zCirca ){
894 blob_appendf(&desc, " occurring around %h.<br>", zCirca);
895 }
 
 
 
896 if( g.okHistory ){
897 if( zAfter || n==nEntry ){
898 zDate = db_text(0, "SELECT min(timestamp) FROM timeline");
899 timeline_submenu(&url, "Older", "b", zDate, "a");
900 free(zDate);
901
--- src/timeline.c
+++ src/timeline.c
@@ -698,11 +698,11 @@
698 if( zType[0]=='a' ){
699 tmFlags = TIMELINE_BRIEF | TIMELINE_GRAPH;
700 }else{
701 tmFlags = TIMELINE_GRAPH;
702 }
703 if( P("ng")!=0 || zSearch!=0 ){
704 tmFlags &= ~TIMELINE_GRAPH;
705 }
706
707 style_header("Timeline");
708 login_anonymous_available();
@@ -891,10 +891,13 @@
891 }else if( zBefore ){
892 blob_appendf(&desc, " occurring on or before %h.<br>", zBefore);
893 }else if( zCirca ){
894 blob_appendf(&desc, " occurring around %h.<br>", zCirca);
895 }
896 if( zSearch ){
897 blob_appendf(&desc, " matching \"%h\"", zSearch);
898 }
899 if( g.okHistory ){
900 if( zAfter || n==nEntry ){
901 zDate = db_text(0, "SELECT min(timestamp) FROM timeline");
902 timeline_submenu(&url, "Older", "b", zDate, "a");
903 free(zDate);
904

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button