Skip to content

Changing todo status in agenda buffer sometimes causes "Not enough room" error with dropbar active #1109

@KodyVB

Description

@KodyVB

Describe the bug

When I open neovim and use the agenda view, it all behaves as expected. I can hover over an entry and press t to change the todo status. But if I open the org file through the agenda mode (either through <CR> or <tab>) then navigate back to the agenda view, pressing t results in:

[orgmode] ...im/site/pack/core/opt/orgmode/lua/orgmode/utils/init.lua:524: Vim:E36: Not enough room

It seems to persist until I reopen neovim.

checkhealth

  • ✅ OK Treesitter grammar installed (version 2.0.2)
  • ✅ OK Setup called
  • ✅ OK org_agenda_files configured
  • ⚠️ WARNING No default notes file configured. Set org_default_notes_file in your config.

Steps to reproduce

(Assuming there are already entries to toggle the todo status of)

  1. Open neovim
  2. Open the agenda view via <leader>oaa
  3. Hover over an entry
  4. Press t to toggle todo status
  5. Press <tab> to open in separate tab
  6. Navigate back to agenda view
  7. Press t to toggle todo status

Expected behavior

The todo status should be toggled after step 7 like it was in step 4.

Emacs functionality

No response

Minimal init.lua

(This assumes files with entries are in ~/Documents/Orgfiles)

vim.pack.add({
	{ src = "https://github.com/nvim-orgmode/orgmode" },
	{ src = "https://github.com/Bekaboo/dropbar.nvim" },
})

local org_dir = "~/Documents/Orgfiles"

require("orgmode").setup({
	org_agenda_files = vim.fs.joinpath(org_dir, "**/*"),
})

For example entries, a file in ~/Documents/Orgfiles/:

* <2026-02-25 Wed>
Lorem Ipsum
* <2026-02-26 Thu>
Lorem Ipsum
* <2026-02-27 Fri>
Lorem Ipsum

Screenshots and recordings

No response

nvim-orgmode version

f3ea61f

OS / Distro

Arch Linux

Neovim version/commit

v0.12.0-dev-2425+gbe8969f4cc

Additional context

I've noticed this happening both in Arch and WSL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions