Skip to content

Commit

Permalink
fix(threads): handle no current frame
Browse files Browse the repository at this point in the history
Not sure of the cause but for ccptools we get a stack frames response
when there is no current frame.

See #138
  • Loading branch information
rcarriga committed Oct 20, 2022
1 parent 1cd4764 commit 0a63115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/dapui/components/threads.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function Threads:render(canvas, indent)
canvas,
frames,
indent + config.windows().indent,
self.state:current_frame().id
self.state:current_frame() and self.state:current_frame().id
)
local last_line = canvas:length()

Expand Down

0 comments on commit 0a63115

Please sign in to comment.