From: Lars Hjemli Date: Tue, 6 Jan 2009 20:51:09 +0000 (+0100) Subject: Merge branch 'stable' X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/25f6a1f4c29b6a6009a185e9473317f0fe64616d?ds=inline;hp=-c Merge branch 'stable' --- 25f6a1f4c29b6a6009a185e9473317f0fe64616d diff --combined ui-tree.c index 051db7c,4bf372a..9876c99 --- a/ui-tree.c +++ b/ui-tree.c @@@ -54,8 -54,10 +54,10 @@@ static void print_object(const unsigne } idx++; } - htmlf(linefmt, ++lineno); - html_txt(buf + start); + if (start < idx) { + htmlf(linefmt, ++lineno); + html_txt(buf + start); + } html("\n"); html("\n"); } @@@ -106,7 -108,7 +108,7 @@@ static int ls_item(const unsigned char html(""); cgit_log_link("log", NULL, "button", ctx.qry.head, curr_rev, - fullpath, 0, NULL, NULL); + fullpath, 0, NULL, NULL, ctx.qry.showmsg); html("\n"); free(name); return 0;