diff options
Diffstat (limited to 'ui-tree.c')
| -rw-r--r-- | ui-tree.c | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -54,8 +54,10 @@ static void print_object(const unsigned char *sha1, char *path) | |||
| 54 | } | 54 | } |
| 55 | idx++; | 55 | idx++; |
| 56 | } | 56 | } |
| 57 | htmlf(linefmt, ++lineno); | 57 | if (start < idx) { |
| 58 | html_txt(buf + start); | 58 | htmlf(linefmt, ++lineno); |
| 59 | html_txt(buf + start); | ||
| 60 | } | ||
| 59 | html("</td></tr>\n"); | 61 | html("</td></tr>\n"); |
| 60 | html("</table>\n"); | 62 | html("</table>\n"); |
| 61 | } | 63 | } |
| @@ -106,7 +108,7 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen, | |||
| 106 | 108 | ||
| 107 | html("<td>"); | 109 | html("<td>"); |
| 108 | cgit_log_link("log", NULL, "button", ctx.qry.head, curr_rev, | 110 | cgit_log_link("log", NULL, "button", ctx.qry.head, curr_rev, |
| 109 | fullpath, 0, NULL, NULL); | 111 | fullpath, 0, NULL, NULL, ctx.qry.showmsg); |
| 110 | if (ctx.repo->max_stats) | 112 | if (ctx.repo->max_stats) |
| 111 | cgit_stats_link("stats", NULL, "button", ctx.qry.head, | 113 | cgit_stats_link("stats", NULL, "button", ctx.qry.head, |
| 112 | fullpath); | 114 | fullpath); |
