fix(ui): correctly extract the cmd on floating buffers (#142)

This commit is contained in:
Nicolas GB
2026-07-16 12:33:49 -07:00
committed by GitHub
parent 2cbb69a914
commit 76efdf514f
+1 -1
View File
@@ -390,7 +390,7 @@ function M.run_floating(cmd, keymaps, float_opts)
end
-- Store the subcommand on successful exit
if exit_code == 0 then
state.floating_buf_cmd = vim.split(cmd, "%s+")[2]
state.floating_buf_cmd = cmd[2]
end
-- Make the bufer optionally not modifiable
if not float_opts.keep_modifiable then