mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-16 22:05:21 -05:00
render: bump maximum window title length from 100 to 2048 (bytes)
Apparently, the max is ~8K, but lets stay on the safe side.
This commit is contained in:
parent
d58f88661f
commit
3869c7299f
2 changed files with 6 additions and 2 deletions
|
|
@ -12,6 +12,11 @@
|
|||
|
||||
## Unreleased
|
||||
### Added
|
||||
### Changed
|
||||
|
||||
* Maximum window title length from 100 to 2048.
|
||||
|
||||
|
||||
### Deprecated
|
||||
### Removed
|
||||
### Fixed
|
||||
|
|
|
|||
3
render.c
3
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue