Increase max cache size for distribute_dots

Since it is now also used to render dotted underlines
This commit is contained in:
Kovid Goyal
2022-01-19 12:00:17 +05:30
parent 5d8a0c4b09
commit 0ae928f409

View File

@@ -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