diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-04-10 12:09:29 -0400 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-04-10 12:09:29 -0400 |
| commit | 133b1aab256ad7ba7a580723abc68ea896c220b5 (patch) | |
| tree | 73d25a4c3d6c0ca0e156966e9c2452839412141b | |
| parent | e184eb6c971abfcd0dc7f836f402aae6c33a8d13 (diff) | |
| download | vis-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.
| -rw-r--r-- | util.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
