From 133b1aab256ad7ba7a580723abc68ea896c220b5 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 10 Apr 2025 12:09:29 -0400 Subject: fix vis:pipe buffer support detection Check a vis:pipe function call like we would call it in vis_pipe. Omitting the fullscreen parameter causes the pcall to succeed, although vis does not support using a string as data source. --- util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.lua b/util.lua index a8ca1be..daaa3fd 100644 --- a/util.lua +++ b/util.lua @@ -31,7 +31,7 @@ function util.capture_cmd(cmd) return s end -local vis_supports_pipe_buf = pcall(vis.pipe, vis, 'foo', 'true') +local vis_supports_pipe_buf = pcall(vis.pipe, vis, 'foo', 'true', false) --- Wrapper for the two vis:pipe variants. -- If vis does not support vis:pipe(input, cmd), prefix the command -- cgit v1.2.3