Skip to content

Commit

Permalink
Clear cached runs after translate_y (#6501)
Browse files Browse the repository at this point in the history
"While re-reading the code, I found out that I forgot to do clear cached runs
after translate_y in c360b75."
  • Loading branch information
beviu authored Jun 14, 2020
1 parent c360b75 commit c0ffc9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/inc/til/bitmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c0ffc9b

Please sign in to comment.