diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2016-06-19 23:17:53 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2016-06-19 23:17:53 -0700 |
commit | 12bd59c5ad9f437f1555dd22b1a792c6d4ce490a (patch) | |
tree | 0d818398f74e6f06ee85d9642dc8f39c9f13d981 /src/fzy.c | |
parent | 52f091dfd559ba6f4ad9ddeb40411423c4914cd4 (diff) |
Store state in tty_interface_t
Diffstat (limited to 'src/fzy.c')
-rw-r--r-- | src/fzy.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |