aboutsummaryrefslogtreecommitdiffstats
path: root/ui-shared.c
diff options
context:
space:
mode:
authorlookshe <github@lookshe.org>2016-02-26 10:59:52 +0100
committerlookshe <github@lookshe.org>2016-02-26 10:59:52 +0100
commit98c3bb0e3b2953abffbe2ba43e782550be006a37 (patch)
treea299b531a2b40e64ae6a65c114d531c17454cf2e /ui-shared.c
parent4d7d10dba5215da5c4a284cbe13e13e085c45d93 (diff)
check for flyspray-links in summary/refs-page
Diffstat (limited to 'ui-shared.c')
-rw-r--r--ui-shared.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 2d695a7..059f449 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -350,18 +350,18 @@ void cgit_log_link(const char *name, const char *title, const char *class,
void cgit_commit_link(char *name, const char *title, const char *class,
const char *head, const char *rev, const char *path)
{
- if (strlen(name) > ctx.cfg.max_msg_len && ctx.cfg.max_msg_len >= 15) {
- name[ctx.cfg.max_msg_len] = '\0';
- name[ctx.cfg.max_msg_len - 1] = '.';
- name[ctx.cfg.max_msg_len - 2] = '.';
- name[ctx.cfg.max_msg_len - 3] = '.';
- }
cgit_commit_link2(name, title, class, head, rev, path, false);
}
void cgit_commit_link2(char *name, const char *title, const char *class,
const char *head, const char *rev, const char *path, bool checkForIssueLink)
{
+ if (strlen(name) > ctx.cfg.max_msg_len && ctx.cfg.max_msg_len >= 15) {
+ name[ctx.cfg.max_msg_len] = '\0';
+ name[ctx.cfg.max_msg_len - 1] = '.';
+ name[ctx.cfg.max_msg_len - 2] = '.';
+ name[ctx.cfg.max_msg_len - 3] = '.';
+ }
if (checkForIssueLink) {
int last_match = 0;
int offset = 0;