dropbar.nvim icon indicating copy to clipboard operation
dropbar.nvim copied to clipboard

[Bug]: File preview causes readonly to be set

Open grimnight opened this issue 3 months ago • 1 comments

Description

When selecting files in dropbar, something goes wrong when trying to close the view leading to current file being set readonly and leaving a small scrollbar box visible. Afterwards dropbar is no longer working.

Following error is shown:

Error detected while processing WinClosed Autocommands for "<buffer=7>":
Error executing lua callback: ...l/share/nvim/lazy/dropbar.nvim/lua/dropbar/menu.lua:721: WinClosed Autocommands for "<buffer=7>"..BufEnter Autocommands for "*.*": Vim(append):Error executing lua callback: /home/grimnight/.config/nvim/lua/config/autocmds.lua:63: WinClosed Autocommands for "<buffer=7>"..BufEnter Autocommands for "*.*": Vim(cd):E344: Can't find directory "dropbar_preview_12:///home/grimnight/Dev/ShDev/archive-cb/" in cdpath
stack traceback:
	[C]: in function 'nvim_command'
	/home/grimnight/.config/nvim/lua/config/autocmds.lua:63: in function </home/grimnight/.config/nvim/lua/config/autocmds.lua:60>
	[C]: in function 'nvim_set_current_win'
	...l/share/nvim/lazy/dropbar.nvim/lua/dropbar/menu.lua:721: in function 'close'
	...l/share/nvim/lazy/dropbar.nvim/lua/dropbar/menu.lua:483: in function <...l/share/nvim/lazy/dropbar.nvim/lua/dropbar/menu.lua:480>
stack traceback:
	[C]: in function 'nvim_set_current_win'
	...l/share/nvim/lazy/dropbar.nvim/lua/dropbar/menu.lua:721: in function 'close'
	...l/share/nvim/lazy/dropbar.nvim/lua/dropbar/menu.lua:483: in function <...l/share/nvim/lazy/dropbar.nvim/lua/dropbar/menu.lua:480>

nvim version

NVIM v0.11.3

dropbar.nvim version

3460930

Operating system and version

Ubuntu

Minimal config

{
    "Bekaboo/dropbar.nvim", -- IDE-like breadcrumbs, out of the box
    -- optional, but required for fuzzy finder support
    dependencies = {
      "nvim-telescope/telescope-fzf-native.nvim",
      build = "make",
    },
    opts = {
      menu = {
        ['q'] = '<C-w>q',
        ['<Esc>'] = '<C-w>q',
      },
    },
    lazy = false,
    keys = keymap.dropbar,
  },

Steps to reproduce

When selecting files in dropbar, something goes wrong when trying to close the view leading to current file being set readonly and leaving a small scrollbar box visible. Afterwards dropbar is no longer working.

Expected behavior

Dropbar preview should close and not set file readonly.

Actual behavior

When selecting files in dropbar, something goes wrong when trying to close the view leading to current file being set readonly and leaving a small scrollbar box visible. Afterwards dropbar is no longer working.

Additional information

No response

grimnight avatar Sep 21 '25 17:09 grimnight

Please provide a full minimal config following the template provided that works with nvim --clean -u minimal.lua, instead of just your lazy.nvim plugin spec.

Bekaboo avatar Sep 26 '25 17:09 Bekaboo