Skip to content

Preview pane closes instantly on MSYS2/MinGW #23

@sewbacca

Description

@sewbacca

I am using neovim via MSYS2/UCRT64, which directly closes the preview image, but I got it fixed by checking if MSYSTEM is set:

if (vim.fn.has('win32') == 1 or vim.fn.has('win64') == 1) and not os.getenv 'MSYSTEM' then

in

if vim.fn.has('win32') == 1 or vim.fn.has('win64') == 1 then
command = "silent !wezterm cli split-pane -- powershell wezterm imgcat "
.. "'" .. absolutePath .. "'"
.. " ; pause"
else
command = "silent !wezterm cli split-pane -- bash -c 'wezterm imgcat \"" .. absolutePath .. "\" ; read'"
end

However I am not a hundered percent certain if that fixes the issue for everyones environment, so maybe a user option should be added?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions