Skip to content

bug: E11: Invalid in command-line window; <CR> executes, CTRL-C quits #479

@FelipeLema

Description

@FelipeLema

Neovim version (nvim -v)

v0.11.4

Operating system/version

Windows 11

Describe the bug

on_complete_dispose triggers nvim_buf_delete and when the latter happens while user is in cmd / command line, it will trigger the error in the title.

Same as stevearc/oil.nvim#390 ... from the looks of it, would have to defer deletion to "later" (re-do defer_fn or create an au command for CmdlineLeave or something)

What is the severity of this bug?

tolerable (can work around it)

Steps To Reproduce

  • Run a task with default parameters
  • Type : to enter cmd line
  • Wait until task is disposed of
  • E11 is triggered

Expected Behavior

no error (printed) after task is disposed of

Minimal example file

No response

Minimal init.lua

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions