Skip to content

fix(ui): prevent errors when restoring invalid window#1539

Merged
deathbeam merged 1 commit intoCopilotC-Nvim:mainfrom
deathbeam:fix-stuff
Mar 29, 2026
Merged

fix(ui): prevent errors when restoring invalid window#1539
deathbeam merged 1 commit intoCopilotC-Nvim:mainfrom
deathbeam:fix-stuff

Conversation

@deathbeam
Copy link
Copy Markdown
Collaborator

  • Add a check in Overlay:restore to ensure the window is valid before
    attempting to set the buffer, preventing errors if the window was
    closed.
  • Scope the close keymap in chat buffer to the buffer only, avoiding
    global keymap pollution.

Closes #1535

- Add a check in Overlay:restore to ensure the window is valid before
  attempting to set the buffer, preventing errors if the window was
  closed.
- Scope the close keymap in chat buffer to the buffer only, avoiding
  global keymap pollution.

Closes CopilotC-Nvim#1535
@deathbeam deathbeam merged commit d4d63a2 into CopilotC-Nvim:main Mar 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stale 'q' keymap persists after closing CopilotChat, causing E5108 on second press

1 participant