Skip to content

Commit

Permalink
fix wrong action preview select
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed May 17, 2024
1 parent 9b33a6c commit 0656ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lspsaga/diagnostic/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ end

local function get_num()
local line = api.nvim_get_current_line()
return line:match('%[(%d+)%]')
return line:match('%*%*(%d+)%*%*')
end

---get the line or cursor diagnostics
Expand Down

0 comments on commit 0656ae9

Please sign in to comment.