aboutsummaryrefslogtreecommitdiffstats
path: root/ui-shared.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-shared.c')
-rw-r--r--ui-shared.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c
index d8d5d76..cea9414 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -944,8 +944,15 @@ void cgit_add_clone_urls(void (*fn)(const char *))
static int print_branch_option(const struct reference *ref, void *cb_data)
{
+ char buffer[200];
char *name = (char *)ref->name;
- html_option(name, name, ctx.qry.head);
+ if (strlen(name)>=190) {
+ html_option(name, name, ctx.qry.head);
+ }
+ else {
+ snprintf(buffer, 199, "⎇%s", name);
+ html_option(name, buffer, ctx.qry.head);
+ }
return 0;
}