From 76efdf514fecd6c5d6dac47b82e683073f563d2c Mon Sep 17 00:00:00 2001 From: Nicolas GB Date: Thu, 16 Jul 2026 12:33:49 -0700 Subject: [PATCH] fix(ui): correctly extract the cmd on floating buffers (#142) --- lua/jj/ui/terminal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/jj/ui/terminal.lua b/lua/jj/ui/terminal.lua index aa2443d..a19996f 100644 --- a/lua/jj/ui/terminal.lua +++ b/lua/jj/ui/terminal.lua @@ -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