mirror of
https://github.com/zoriya/jj.nvim.git
synced 2026-08-05 02:36:07 +00:00
fix(ui): correctly extract the cmd on floating buffers (#142)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user