diff options
Diffstat (limited to 'src/display/term.nim')
-rw-r--r-- | src/display/term.nim | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/display/term.nim b/src/display/term.nim index 6358535f..cb96a385 100644 --- a/src/display/term.nim +++ b/src/display/term.nim @@ -407,11 +407,7 @@ proc processFormat*(term: Terminal, format: var Format, cellf: Format): string = proc setTitle*(term: Terminal, title: string) = if term.set_title: - let title = if Controls in title: - title.replaceControls() - else: - title - term.outfile.write(XTERM_TITLE(title)) + term.outfile.write(XTERM_TITLE(title.replaceControls())) proc enableMouse*(term: Terminal) = term.write(XTSHIFTESCAPE & SGRMOUSEBTNON) |