aboutsummaryrefslogtreecommitdiff
path: root/vis-cmds.c
diff options
context:
space:
mode:
authorJörg Bakker <captaingroove@openmultimedia.org>2023-06-16 11:59:25 +0200
committerRandy Palamar <palamar@ualberta.ca>2023-07-18 21:06:46 -0600
commit80fbb7e1ead4d16f1f4d511d30df18eeb65ceafa (patch)
tree106950ed5bdcfbc14b18c6bc8e96df92aa951268 /vis-cmds.c
parent599ced0bfc378682053484a9658bd59c02c96973 (diff)
downloadvis-80fbb7e1ead4d16f1f4d511d30df18eeb65ceafa.tar.gz
vis-80fbb7e1ead4d16f1f4d511d30df18eeb65ceafa.tar.xz
Add fullscreen param to vis_pipe_collect() and Lua API vis:pipe()
This enables restoring the terminal from a fullscreen command like curses based program. Use cases are e.g. a file picker based on some external program like nnn (https://github.com/jarun/nnn).
Diffstat (limited to 'vis-cmds.c')
-rw-r--r--vis-cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis-cmds.c b/vis-cmds.c
index 2993267..fe1ab77 100644
--- a/vis-cmds.c
+++ b/vis-cmds.c
@@ -408,7 +408,7 @@ static const char *file_open_dialog(Vis *vis, const char *pattern) {
Filerange empty = text_range_new(0,0);
int status = vis_pipe(vis, vis->win->file, &empty,
(const char*[]){ buffer_content0(&bufcmd), NULL },
- &bufout, read_buffer, &buferr, read_buffer);
+ &bufout, read_buffer, &buferr, read_buffer, false);
if (status == 0)
strncpy(name, buffer_content0(&bufout), sizeof(name)-1);