fix: decompile all, remove unnecessary cursor set

This commit is contained in:
əlemi 2023-03-20 23:27:13 +01:00
parent b14cf6bcfb
commit 4d3ace9688
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -15,7 +15,7 @@ vim.api.nvim_create_user_command(
local classpath = classpath_raw:gsub("%%5C", "") .. '.jar'
local classname = classname_raw:gsub("%%3C", ""):gsub("%(", ".")
vim.fn.jobstart(
{'javap', '-c', '--class-path', classpath, classname},
{'javap', '-p', '-c', '--class-path', classpath, classname},
{
width = 1024,
stdout_buffered = true,
@ -37,7 +37,6 @@ vim.api.nvim_create_user_command(
})
else
vim.api.nvim_win_set_buf(0, buf)
vim.api.nvim_win_set_cursor(buf, { 1, 0 })
end
end
}