Skip to content

fix(keymaps): register commit_log_panel keymaps in init_buffer instead of init#1

Merged
dlyongemallo merged 1 commit intomainfrom
fix_esc
Feb 5, 2026
Merged

fix(keymaps): register commit_log_panel keymaps in init_buffer instead of init#1
dlyongemallo merged 1 commit intomainfrom
fix_esc

Conversation

@dlyongemallo
Copy link
Owner

No description provided.

…d of init

Fixes bug introduced in 1b386ce which caused Esc to close any diffview window.
Copilot AI review requested due to automatic review settings February 5, 2026 14:00
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug in the commit_log_panel keymap registration by moving the keymap setup from the init method to the init_buffer method. This ensures that keymaps are registered only when the buffer is actually created and self.bufid is available.

Changes:

  • Moved keymap registration from init() to init_buffer() in CommitLogPanel
  • Kept the close event listener in init() where it belongs
  • Added proper call to parent class's init_buffer() method

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dlyongemallo dlyongemallo merged commit f9462f8 into main Feb 5, 2026
6 checks passed
@dlyongemallo dlyongemallo deleted the fix_esc branch February 9, 2026 07:08
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.

2 participants