chiark
/
gitweb
/
~ian
/
mastodonochrome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38ac322
)
Align [^X] in menus left instead of right.
author
Simon Tatham
<anakin@pobox.com>
Fri, 19 Jan 2024 13:24:12 +0000
(13:24 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Sat, 20 Jan 2024 10:16:19 +0000
(10:16 +0000)
That way the actual letter lines up under other letters.
src/text.rs
patch
|
blob
|
history
diff --git
a/src/text.rs
b/src/text.rs
index e732a95f1e65d9fdb354472f9b107e640db69538..09863303db79dceeabcf63f11b1d72cdcfdc1116 100644
(file)
--- a/
src/text.rs
+++ b/
src/text.rs
@@
-2110,8
+2110,8
@@
impl TextFragmentOneLine for MenuKeypressLine {
let leftpad = min(leftpad, (width - min(width, self.lmaxwid + 8)) / 2);
let lspace = self.lmaxwid - self.lwid;
- let l
l
space = lspace / 2;
- let l
rspace = lspace - ll
space;
+ let l
r
space = lspace / 2;
+ let l
lspace = lspace - lr
space;
let keydesc = key_to_string(self.keypress.key);
let line = ColouredString::plain(" ").repeat(leftpad + llspace)