diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-22 19:07:57 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-22 19:07:57 +0000 |
| commit | 3869c7299fae34464317ebb71566859608e2c1cf (patch) | |
| tree | 7548e6213a232bca0352b9162b7b8c30c9d4ae81 | |
| parent | changelog: 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.md | 5 | ||||
| -rw-r--r-- | 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 @@ -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; |
