summaryrefslogtreecommitdiff
path: root/src/fzy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fzy.c')
-rw-r--r--src/fzy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fzy.c b/src/fzy.c
index 544afbe..f19f6e4 100644
--- a/src/fzy.c
+++ b/src/fzy.c
@@ -46,7 +46,9 @@ int main(int argc, char *argv[]) {
if (options.num_lines + 1 > tty_getheight(&tty))
options.num_lines = tty_getheight(&tty) - 1;
- tty_interface_run(&tty, &choices, &options);
+ tty_interface_t tty_interface;
+ tty_interface_init(&tty_interface, &tty, &choices, &options);
+ tty_interface_run(&tty_interface);
}
choices_destroy(&choices);