Skip to content

Commit 668e9e6

Browse files
committed
fix(scroll): prevent nil access
1 parent dc07ea1 commit 668e9e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/dap-view/console/scroll.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ end
7777
M.cleanup_autoscroll = function(bufnr)
7878
if termbuf_is_autoscrolling[bufnr] then
7979
api.nvim_del_augroup_by_name("nvim-dap-view-scroll-" .. bufnr)
80-
end
8180

82-
termbuf_is_autoscrolling[bufnr] = nil
81+
termbuf_is_autoscrolling[bufnr] = nil
82+
end
8383
end
8484

8585
return M

0 commit comments

Comments
 (0)