0001-optimize-for-selecting-multiple-lines-of-codes.patch (965B)
1From 84c0c5077c703b2a8040aea9ac9f83075db0191c Mon Sep 17 00:00:00 2001 2From: Dash Eclipse <dashezup@disroot.org> 3Date: Sun, 4 Oct 2020 21:36:01 +0000 4Subject: [PATCH] optimize for selecting multiple lines of codes 5 6--- 7 stagit.c | 2 +- 8 style.css | 2 ++ 9 2 files changed, 3 insertions(+), 1 deletion(-) 10 11diff --git a/stagit.c b/stagit.c 12index d9e80a1..04f3ec9 100644 13--- a/stagit.c 14+++ b/stagit.c 15@@ -503,7 +503,7 @@ int 16 writeblobhtml(FILE *fp, const git_blob *blob) 17 { 18 size_t n = 0, i, prev; 19- const char *nfmt = "<a href=\"#l%d\" class=\"line\" id=\"l%d\">%7d</a> "; 20+ const char *nfmt = "<a href=\"#l%d\" class=\"line\" id=\"l%d\">%7d</a>"; 21 const char *s = git_blob_rawcontent(blob); 22 git_off_t len = git_blob_rawsize(blob); 23 24diff --git a/style.css b/style.css 25index d1cd6d3..e98fa99 100644 26--- a/style.css 27+++ b/style.css 28@@ -30,6 +30,8 @@ a.line { 29 30 #blob a { 31 color: #777; 32+ user-select: none; 33+ margin-right: 7px; 34 } 35 36 #blob a:hover { 37-- 382.28.0 39