]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
viewvcs: use wider textarea for search query
authorEric Wong <e@80x24.org>
Wed, 2 Oct 2024 22:39:01 +0000 (22:39 +0000)
committerEric Wong <e@80x24.org>
Mon, 7 Oct 2024 08:22:23 +0000 (08:22 +0000)
We normally wrap text at 72, but the <textarea> can be wider
in case there's long words which aren't broken apart.
With w3m, the enclosing `[' and `]' take up two columns
combined, so it works out to maximizing a standard 80-column
terminal.

lib/PublicInbox/ViewVCS.pm

index a29789fdd646372be382260301293cdfc926b2dc..49477619def16ed47eea8e81e7901a1ed4f83a9a 100644 (file)
@@ -308,7 +308,7 @@ EOM
                        print $zfh <<EOM;
 <hr><form action="$ibx_url"
 id=related><pre>find related emails, including ancestors/descendants/conflicts
-<textarea name=q cols=${\PublicInbox::View::COLS} rows=$rows>$q</textarea>
+<textarea name=q cols=78 rows=$rows>$q</textarea>
 <input type=submit value="search$alt"
 />\t(<a href="${ibx_url}_/text/help/">help</a>)</pre></form>
 EOM