Skip to content

Commit e8506f5

Browse files
fix(variables): clear prompt_func after editing variable (#330)
Closes #325 --- `prompt_func` is not being reset to `nil` when editing a variable. This causes `canvas:set_prompt()` to get trigger on every other action, like `expand`.
1 parent 4575bc3 commit e8506f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/dapui/components/variables.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ return function(client, send_ready)
8282
canvas:add_mapping("edit", function()
8383
prompt_func = function(new_value)
8484
async.run(function()
85-
client.lib.set_variable(parent_ref, variable, new_value)
8685
prompt_func = nil
8786
prompt_fill = nil
87+
client.lib.set_variable(parent_ref, variable, new_value)
8888
send_ready()
8989
end)
9090
end

0 commit comments

Comments
 (0)