Skip to content

Commit

Permalink
cleanup some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
igorlfs committed Dec 9, 2024
1 parent 4dca465 commit e22afa9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lua/dap-view/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ local globals = require("dap-view.globals")

local api = vim.api

---@class Actions
local M = {}

M.toggle = function()
Expand All @@ -29,9 +28,6 @@ M.close = function()
end
end

-- TODO showing breakpoint info may be outdated if not in a session
-- we could use another approach to track breakpoint (instead of looking at the QF list)

M.open = function()
M.close()

Expand All @@ -41,11 +37,11 @@ M.open = function()

state.bufnr = bufnr

-- TODO move this to close?
local prev_buf = util.get_buf(globals.MAIN_BUF_NAME)
if prev_buf then
api.nvim_buf_delete(prev_buf, { force = true })
end

api.nvim_buf_set_name(bufnr, globals.MAIN_BUF_NAME)

local winnr = api.nvim_open_win(bufnr, false, {
Expand Down

0 comments on commit e22afa9

Please sign in to comment.