diff options
Diffstat (limited to 'src/terminal_ui.cc')
| -rw-r--r-- | src/terminal_ui.cc | 2 |
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) |
