summaryrefslogtreecommitdiff
path: root/src/fzy.c
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2016-06-19 23:17:53 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2016-06-19 23:17:53 -0700
commit12bd59c5ad9f437f1555dd22b1a792c6d4ce490a (patch)
tree0d818398f74e6f06ee85d9642dc8f39c9f13d981 /src/fzy.c
parent52f091dfd559ba6f4ad9ddeb40411423c4914cd4 (diff)
Store state in tty_interface_t
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);