From 0ae928f409111ca5013307762f8270796c6b13a5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 19 Jan 2022 12:00:17 +0530 Subject: [PATCH] Increase max cache size for distribute_dots Since it is now also used to render dotted underlines --- kitty/fonts/box_drawing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/fonts/box_drawing.py b/kitty/fonts/box_drawing.py index 47e0c86f1..79fe3931e 100644 --- a/kitty/fonts/box_drawing.py +++ b/kitty/fonts/box_drawing.py @@ -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