Skip to content

Commit

Permalink
[fix]: little fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhongjia committed Feb 3, 2024
1 parent 06a0bd2 commit 38030a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/LspUI/pos_abstract.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1120,6 +1120,7 @@ local find_position_from_params = function(params)
local file_lnum = nil
local code_lnum = nil

--- @type integer|nil
local tmp = nil

for uri, data in pairs(M.datas()) do
Expand Down Expand Up @@ -1147,7 +1148,9 @@ local find_position_from_params = function(params)
code_lnum = lnum
end
else
tmp = val
tmp = math.abs(
val.start.character - params.position.character
)
code_lnum = lnum
end
end
Expand Down

0 comments on commit 38030a9

Please sign in to comment.