aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-22 19:07:57 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-22 19:07:57 +0000
commit3869c7299fae34464317ebb71566859608e2c1cf (patch)
tree7548e6213a232bca0352b9162b7b8c30c9d4ae81
parentchangelog: add new 'unreleased' section (diff)
render: bump maximum window title length from 100 to 2048 (bytes)
Apparently, the max is ~8K, but lets stay on the safe side.
-rw-r--r--CHANGELOG.md5
-rw-r--r--render.c3
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;