aboutsummaryrefslogtreecommitdiff
path: root/util.lua
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-04-10 12:09:29 -0400
committerFlorian Fischer <florian.fischer@muhq.space>2025-04-10 12:09:29 -0400
commit133b1aab256ad7ba7a580723abc68ea896c220b5 (patch)
tree73d25a4c3d6c0ca0e156966e9c2452839412141b /util.lua
parente184eb6c971abfcd0dc7f836f402aae6c33a8d13 (diff)
downloadvis-lspc-133b1aab256ad7ba7a580723abc68ea896c220b5.tar.gz
vis-lspc-133b1aab256ad7ba7a580723abc68ea896c220b5.zip
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.
Diffstat (limited to 'util.lua')
-rw-r--r--util.lua2
1 files changed, 1 insertions, 1 deletions
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