Skip to content

Commit a5606bc

Browse files
authored
fix: edit variables (#355)
1 parent 60a29e6 commit a5606bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/dapui/client/lib.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ return function(client)
5353

5454
---@param variable dapui.types.Variable
5555
function client_lib.set_variable(container_ref, variable, value)
56-
local err = pcall(function()
56+
local ok, err = pcall(function()
5757
if client.session.capabilities.supportsSetExpression and variable.evaluateName then
5858
local frame_id = client.session.current_frame and client.session.current_frame.id
5959
client.request.setExpression({
@@ -74,7 +74,7 @@ return function(client)
7474
)
7575
end
7676
end)
77-
if err then
77+
if not ok then
7878
util.notify(util.format_error(err))
7979
end
8080
end

0 commit comments

Comments
 (0)