aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-core
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-07-29 01:28:01 +0200
committerGitHub <noreply@github.com>2022-07-28 23:28:01 +0000
commitbf2442eaf6b116321dda12ee73a37c4e733eefb8 (patch)
tree15801610388fcc57b00e68cdd179355953093142 /lua/mason-core
parentfeat: selene now installed from pre-built binary (#187) (diff)
downloadmason-bf2442eaf6b116321dda12ee73a37c4e733eefb8.tar
mason-bf2442eaf6b116321dda12ee73a37c4e733eefb8.tar.gz
mason-bf2442eaf6b116321dda12ee73a37c4e733eefb8.tar.bz2
mason-bf2442eaf6b116321dda12ee73a37c4e733eefb8.tar.lz
mason-bf2442eaf6b116321dda12ee73a37c4e733eefb8.tar.xz
mason-bf2442eaf6b116321dda12ee73a37c4e733eefb8.tar.zst
mason-bf2442eaf6b116321dda12ee73a37c4e733eefb8.zip
fix(ui): don't call terminate handler when setting up handle (#190)
The terminate handler should only really be called when the handle is terminated. By calling it immediately (to initialize UI state), any queued packages would be reset to either the "installed" or "uninstalled" group, when they really should remain "queued".
Diffstat (limited to 'lua/mason-core')
-rw-r--r--lua/mason-core/ui/display.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/lua/mason-core/ui/display.lua b/lua/mason-core/ui/display.lua
index 285a153a..d1c2985a 100644
--- a/lua/mason-core/ui/display.lua
+++ b/lua/mason-core/ui/display.lua
@@ -245,8 +245,6 @@ function M.new_view_only_win(name, filetype)
local draw = function(view)
local win_valid = win_id ~= nil and vim.api.nvim_win_is_valid(win_id)
local buf_valid = bufnr ~= nil and vim.api.nvim_buf_is_valid(bufnr)
- log.fmt_trace("got bufnr=%s", bufnr)
- log.fmt_trace("got win_id=%s", win_id)
if not win_valid or not buf_valid then
-- the window has been closed or the buffer is somehow no longer valid