summaryrefslogtreecommitdiff
path: root/src/terminal_ui.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2025-07-08 11:52:44 +1000
committerMaxime Coste <mawww@kakoune.org>2025-07-08 12:07:33 +1000
commitde1516a8d822f72bddfb158126b6e609afc63c64 (patch)
tree9765b18349657a766b92046cd23976ad26815acf /src/terminal_ui.cc
parentce1d512a0c1922ab5f43f28e7bae573508c98601 (diff)
Replace on_scope_end with CTAD with OnScopeEnd directly
Diffstat (limited to 'src/terminal_ui.cc')
-rw-r--r--src/terminal_ui.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terminal_ui.cc b/src/terminal_ui.cc
index c55d0763..3d963e82 100644
--- a/src/terminal_ui.cc
+++ b/src/terminal_ui.cc
@@ -637,7 +637,7 @@ void TerminalUI::check_resize(bool force)
const int fd = open("/dev/tty", O_RDWR);
if (fd < 0)
return;
- auto close_fd = on_scope_end([fd]{ ::close(fd); });
+ auto close_fd = OnScopeEnd([fd]{ ::close(fd); });
DisplayCoord terminal_size{24_line, 80_col};
if (winsize ws; ioctl(fd, TIOCGWINSZ, &ws) == 0 and ws.ws_row > 0 and ws.ws_col > 0)