aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--CHANGELOG.md3
-rw-r--r--render.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 682f5ddc..62522b86 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -99,6 +99,8 @@
([#2493][2493]).
* `spawn-terminal` not using the command line options from the
original instance ([#1622][1622]).
+* High CPU usage after an escape sequence forced a refresh of the
+ margins ([#2511][2511]).
[2432]: https://codeberg.org/dnkl/foot/pulls/2432
[2467]: https://codeberg.org/dnkl/foot/issues/2467
@@ -107,6 +109,7 @@
[2487]: https://codeberg.org/dnkl/foot/issues/2487
[2493]: https://codeberg.org/dnkl/foot/issues/2493
[1622]: https://codeberg.org/dnkl/foot/issues/1622
+[2511]: https://codeberg.org/dnkl/foot/issues/2511
### Security
diff --git a/render.c b/render.c
index 2bc44146..7b50c3a3 100644
--- a/render.c
+++ b/render.c
@@ -3361,6 +3361,7 @@ grid_render(struct terminal *term)
term->render.margins)
{
force_full_repaint(term, buf);
+ term->render.margins = false;
}
else if (buf->age > 0) {