aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2026-11-28 09:20:35 +0000
committerDaniel Eklöf <daniel@ekloef.se>2026-11-28 09:21:52 +0000
commit7b91cd92c30563be153f82769a9a6681bc554785 (patch)
treeff4d7293a4d4b571eb33563085f0e096b022785a
parentspawn-terminal: spawn with all the original command line options (diff)
render: clear render.margins after they triggered a full repaintdamage-margins-causes-high-cpu-usage
Closes #2511
-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) {