mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 12:42:25 +00:00
Increase max cache size for distribute_dots
Since it is now also used to render dotted underlines
This commit is contained in:
parent
5d8a0c4b09
commit
0ae928f409
1 changed files with 1 additions and 1 deletions
|
|
@ -754,7 +754,7 @@ def eight_block(buf: BufType, width: int, height: int, level: int = 1, which: Tu
|
|||
eight_bar(buf, width, height, level, x, horizontal)
|
||||
|
||||
|
||||
@lru_cache(maxsize=32)
|
||||
@lru_cache(maxsize=64)
|
||||
def distribute_dots(available_space: int, num_of_dots: int) -> Tuple[Tuple[int, ...], int]:
|
||||
dot_size = max(1, available_space // (2 * num_of_dots))
|
||||
extra = available_space - 2 * num_of_dots * dot_size
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue