Fossil SCM

Fix "Newer" button in timeline when using "c" parameter

baruch 2016-01-20 23:07 trunk
Commit 28dd7c1daaf38d66e468dd3c96992f6fdce62e52
1 file changed +1
--- src/timeline.c
+++ src/timeline.c
@@ -1757,10 +1757,11 @@
17571757
zDate = db_text(0, "SELECT min(timestamp) FROM timeline /*scan*/");
17581758
if( nBefore>=nEntry ){
17591759
timeline_submenu(&url, "Older", "b", zDate, "c");
17601760
zOlderButton = fossil_strdup(url_render(&url, "b", zDate, "c", 0));
17611761
}
1762
+ zDate = db_text(0, "SELECT max(timestamp) FROM timeline /*scan*/");
17621763
if( nAfter>=nEntry ){
17631764
timeline_submenu(&url, "Newer", "a", zDate, "c");
17641765
}
17651766
free(zDate);
17661767
}else{
17671768
--- src/timeline.c
+++ src/timeline.c
@@ -1757,10 +1757,11 @@
1757 zDate = db_text(0, "SELECT min(timestamp) FROM timeline /*scan*/");
1758 if( nBefore>=nEntry ){
1759 timeline_submenu(&url, "Older", "b", zDate, "c");
1760 zOlderButton = fossil_strdup(url_render(&url, "b", zDate, "c", 0));
1761 }
 
1762 if( nAfter>=nEntry ){
1763 timeline_submenu(&url, "Newer", "a", zDate, "c");
1764 }
1765 free(zDate);
1766 }else{
1767
--- src/timeline.c
+++ src/timeline.c
@@ -1757,10 +1757,11 @@
1757 zDate = db_text(0, "SELECT min(timestamp) FROM timeline /*scan*/");
1758 if( nBefore>=nEntry ){
1759 timeline_submenu(&url, "Older", "b", zDate, "c");
1760 zOlderButton = fossil_strdup(url_render(&url, "b", zDate, "c", 0));
1761 }
1762 zDate = db_text(0, "SELECT max(timestamp) FROM timeline /*scan*/");
1763 if( nAfter>=nEntry ){
1764 timeline_submenu(&url, "Newer", "a", zDate, "c");
1765 }
1766 free(zDate);
1767 }else{
1768

Keyboard Shortcuts

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