mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
Use actual ellipsis character instead of ... to truncate strings
Space is scarce in lazygit's UI, and using ... wastes a lot of it.
This commit is contained in:
@ -107,22 +107,22 @@ func TestTruncateWithEllipsis(t *testing.T) {
|
||||
{
|
||||
"hello world !",
|
||||
3,
|
||||
"...",
|
||||
"he…",
|
||||
},
|
||||
{
|
||||
"hello world !",
|
||||
4,
|
||||
"h...",
|
||||
"hel…",
|
||||
},
|
||||
{
|
||||
"hello world !",
|
||||
5,
|
||||
"he...",
|
||||
"hell…",
|
||||
},
|
||||
{
|
||||
"hello world !",
|
||||
12,
|
||||
"hello wor...",
|
||||
"hello world…",
|
||||
},
|
||||
{
|
||||
"hello world !",
|
||||
@ -137,13 +137,18 @@ func TestTruncateWithEllipsis(t *testing.T) {
|
||||
{
|
||||
"大大大大",
|
||||
5,
|
||||
"大...",
|
||||
"大大…",
|
||||
},
|
||||
{
|
||||
"大大大大",
|
||||
2,
|
||||
"..",
|
||||
},
|
||||
{
|
||||
"大大大大",
|
||||
1,
|
||||
".",
|
||||
},
|
||||
{
|
||||
"大大大大",
|
||||
0,
|
||||
|
Reference in New Issue
Block a user