summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/telescope/builtin/lsp.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/builtin/lsp.lua b/lua/telescope/builtin/lsp.lua
index 59cd1f9..892d9e8 100644
--- a/lua/telescope/builtin/lsp.lua
+++ b/lua/telescope/builtin/lsp.lua
@@ -255,7 +255,7 @@ lsp.code_actions = function(opts)
-- Is only run on lsp codeactions which contain a comand or a arguments field
-- Fixed Java/jdtls compatibility with Telescope
-- See fix_zero_version commentary for more information
- if action.command or action.arguments then
+ if (action.command and action.command.arguments) or action.arguments then
if action.command.command then
action.edit = fix_zero_version(action.command.arguments[1])
else