From c0ffc9b6dce9b632c868b6584a0f1c8c9dd1df93 Mon Sep 17 00:00:00 2001 From: greg904 <56923875+greg904@users.noreply.github.com> Date: Sun, 14 Jun 2020 09:17:26 +0200 Subject: [PATCH] Clear cached runs after translate_y (#6501) "While re-reading the code, I found out that I forgot to do clear cached runs after translate_y in c360b7588ff8d389b49a4ed60cdee51401a5e172." --- src/inc/til/bitmap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/inc/til/bitmap.h b/src/inc/til/bitmap.h index 752c998c463..d1f5dff7fd1 100644 --- a/src/inc/til/bitmap.h +++ b/src/inc/til/bitmap.h @@ -440,6 +440,8 @@ namespace til // Terminal Implementation Library. Also: "Today I Learned" _bits.set(_bits.size() - newBits, newBits, true); } } + + _runs.reset(); // reset cached runs on any non-const method } til::size _sz;