feat(tui): add adaptive session tabs (#39396)
This commit is contained in:
parent
f95d04fea0
commit
37a1b80d5a
19 changed files with 1485 additions and 147 deletions
|
|
@ -7,3 +7,8 @@ test("truncates text from the right by terminal width", () => {
|
|||
expect(Locale.truncateWidth("abcdefgh", 1)).toBe("…")
|
||||
expect(Locale.truncateWidth("abcdefgh", 0)).toBe("")
|
||||
})
|
||||
|
||||
test("takes whole graphemes within terminal width", () => {
|
||||
expect(Locale.takeWidth("ab界cd", 4)).toBe("ab界")
|
||||
expect(Locale.graphemes("a👨👩👧👦b")).toEqual(["a", "👨👩👧👦", "b"])
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue