From 80fbb7e1ead4d16f1f4d511d30df18eeb65ceafa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Bakker?= Date: Fri, 16 Jun 2023 11:59:25 +0200 Subject: 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). --- vis-cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis-cmds.c') 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); -- cgit v1.2.3