Fossil SCM

Make option '--offset' work again with the 'after' keyword for the 'timeline' command. Regression introduced in [ee2a71b5c7].

danield 2025-10-08 12:03 trunk
Commit 4bfbe5f5b47b230214d4ca34fe83ec208411ac978e12ff39dea4e6167cd06150
1 file changed +1 -1
+1 -1
--- src/timeline.c
+++ src/timeline.c
@@ -3862,11 +3862,11 @@
38623862
}else if( n < 0 ){
38633863
lim = -n;
38643864
}
38653865
/* Complete the above outer select. */
38663866
blob_append_sql(&sql,
3867
- "\nORDER BY event.mtime LIMIT %d) t ORDER BY t.mDateTime DESC;", lim);
3867
+ "\nORDER BY event.mtime LIMIT %d) t ORDER BY t.mDateTime DESC", lim);
38683868
}else{
38693869
blob_append_sql(&sql, "\nORDER BY event.mtime DESC");
38703870
}
38713871
if( iOffset>0 ){
38723872
/* Don't handle LIMIT here, otherwise print_timeline()
38733873
--- src/timeline.c
+++ src/timeline.c
@@ -3862,11 +3862,11 @@
3862 }else if( n < 0 ){
3863 lim = -n;
3864 }
3865 /* Complete the above outer select. */
3866 blob_append_sql(&sql,
3867 "\nORDER BY event.mtime LIMIT %d) t ORDER BY t.mDateTime DESC;", lim);
3868 }else{
3869 blob_append_sql(&sql, "\nORDER BY event.mtime DESC");
3870 }
3871 if( iOffset>0 ){
3872 /* Don't handle LIMIT here, otherwise print_timeline()
3873
--- src/timeline.c
+++ src/timeline.c
@@ -3862,11 +3862,11 @@
3862 }else if( n < 0 ){
3863 lim = -n;
3864 }
3865 /* Complete the above outer select. */
3866 blob_append_sql(&sql,
3867 "\nORDER BY event.mtime LIMIT %d) t ORDER BY t.mDateTime DESC", lim);
3868 }else{
3869 blob_append_sql(&sql, "\nORDER BY event.mtime DESC");
3870 }
3871 if( iOffset>0 ){
3872 /* Don't handle LIMIT here, otherwise print_timeline()
3873

Keyboard Shortcuts

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