diff options
author | bptato <nincsnevem662@gmail.com> | 2023-06-07 16:10:18 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-06-07 16:10:18 +0200 |
commit | 93848e0c93ef0203393c48c8d9b48a2b51743107 (patch) | |
tree | 35113b8c73e831ab76d5de9bf7897857cdd8ce6a /src/buffer | |
parent | d78298ae3369374bf7bf31592513d112c75a9601 (diff) | |
download | chawan-93848e0c93ef0203393c48c8d9b48a2b51743107.tar.gz |
Add XTERM title renaming
Diffstat (limited to 'src/buffer')
-rw-r--r-- | src/buffer/container.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer/container.nim b/src/buffer/container.nim index 7ee40f22..e301e05c 100644 --- a/src/buffer/container.nim +++ b/src/buffer/container.nim @@ -36,7 +36,7 @@ type ContainerEventType* = enum NO_EVENT, FAIL, SUCCESS, NEEDS_AUTH, REDIRECT, ANCHOR, NO_ANCHOR, UPDATE, - READ_LINE, READ_AREA, OPEN, INVALID_COMMAND, STATUS, ALERT, LOADED + READ_LINE, READ_AREA, OPEN, INVALID_COMMAND, STATUS, ALERT, LOADED, TITLE ContainerEvent* = object case t*: ContainerEventType @@ -679,7 +679,7 @@ proc onload(container: Container, res: LoadResult) = container.iface.getTitle().then(proc(title: string): auto = if title != "": container.title = title - container.triggerEvent(STATUS) + container.triggerEvent(TITLE) return container.iface.render() ).then(proc(lines: int): auto = container.setNumLines(lines, true) |