Skip to content

Commit 92dc531

Browse files
authored
Do not append text each time a widgets is opened (#1043)
Fixes #1042
1 parent e79007c commit 92dc531

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/dap/ui.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ function M.new_tree(opts)
261261
end,
262262

263263
render = function(layer, value, on_done, lnum, end_)
264+
lnum = lnum or 0
265+
end_ = end_ or -1
264266
layer.render({value}, opts.render_parent, nil, lnum, end_)
265267
if not opts.has_children(value) then
266268
if on_done then

0 commit comments

Comments
 (0)