mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-12 19:49:32 +02:00
Increase max cache size for distribute_dots
Since it is now also used to render dotted underlines
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user