Chris Morgan
›
Git
›
gitweb
› commitdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
patch
|
inline
| side by side (parent:
eb1be11
)
commit
grep
author
committer
pickaxe
?
search:
re
Remove line numbers from selection
author
Chris Morgan
<me@chrismorgan.info>
Sat, 8 Jan 2022 03:11:00 +0000
committer
Chris Morgan
<me@chrismorgan.info>
Sat, 8 Jan 2022 03:11:00 +0000
gitweb.cgi
patch
|
blob
|
history
static/gitweb.css
patch
|
blob
|
history
diff --git
a/gitweb.cgi
b/gitweb.cgi
index 16e2e3c70c6df29963e55d4df61598b3f8a832c4..b74ebd505746d69eba6a811fc906f5a567b292da 100755
(executable)
--- a/
gitweb.cgi
+++ b/
gitweb.cgi
@@
-6444,8
+6444,8
@@
sub git_search_files {
}
print "<div class=\"pre\">" .
$cgi->a({-href => $file_href.'#l'.$lno,
}
print "<div class=\"pre\">" .
$cgi->a({-href => $file_href.'#l'.$lno,
- -class => "linenr"}, sprintf('%4i', $lno)) .
-
' ' .
$ltext . "</div>\n";
+ -class => "linenr"}, sprintf('%4i
', $lno)) .
+ $ltext . "</div>\n";
}
}
if ($lastfile) {
}
}
if ($lastfile) {
@@
-7198,7
+7198,7
@@
sub git_blob {
chomp $line;
$nr++;
$line = untabify($line);
chomp $line;
$nr++;
$line = untabify($line);
- printf qq!<div class="pre"><a id="l%i" href="%s#l%i" class="linenr">%4i
</a>
%s</div>\n!,
+ printf qq!<div class="pre"><a id="l%i" href="%s#l%i" class="linenr">%4i
</a>
%s</div>\n!,
$nr, esc_attr(href(-replay => 1)), $nr, $nr,
$highlight ? sanitize($line) : esc_html($line, -nbsp=>1);
}
$nr, esc_attr(href(-replay => 1)), $nr, $nr,
$highlight ? sanitize($line) : esc_html($line, -nbsp=>1);
}
diff --git
a/static/gitweb.css
b/static/gitweb.css
index 3212601032622fef063f06066bd7131061de36d9..ba8e9917d1b2d6ca5d99fbba79ca1ea28734b2c1 100644
(file)
--- a/
static/gitweb.css
+++ b/
static/gitweb.css
@@
-549,7
+549,8
@@
td.linenr {
a.linenr {
color: #999999;
a.linenr {
color: #999999;
- text-decoration: none
+ text-decoration: none;
+ user-select: none;
}
a.rss_logo {
}
a.rss_logo {