From 3869c7299fae34464317ebb71566859608e2c1cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 22 Jul 2020 21:07:57 +0200 Subject: [PATCH] render: bump maximum window title length from 100 to 2048 (bytes) Apparently, the max is ~8K, but lets stay on the safe side. --- CHANGELOG.md | 5 +++++ render.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f9fa2a2b..286b7836 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,11 @@ ## Unreleased ### Added +### Changed + +* Maximum window title length from 100 to 2048. + + ### Deprecated ### Removed ### Fixed diff --git a/render.c b/render.c index b71325f6..80611d22 100644 --- a/render.c +++ b/render.c @@ -1660,8 +1660,7 @@ render_search_box(struct terminal *term) static void render_update_title(struct terminal *term) { - /* TODO: figure out what the limit actually is */ - static const size_t max_len = 100; + static const size_t max_len = 2048; const char *title = term->window_title != NULL ? term->window_title : "foot"; char *copy = NULL;