Skip to content

fix: don't set global keymap when disable preview#111

Merged
dmtrKovalenko merged 1 commit intodmtrKovalenko:mainfrom
phanen:fix-key
Aug 18, 2025
Merged

fix: don't set global keymap when disable preview#111
dmtrKovalenko merged 1 commit intodmtrKovalenko:mainfrom
phanen:fix-key

Conversation

@phanen
Copy link
Copy Markdown
Contributor

@phanen phanen commented Aug 17, 2025

No description provided.

@dmtrKovalenko dmtrKovalenko requested a review from Copilot August 17, 2025 20:21
Copy link
Copy Markdown
Contributor

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 where global keymaps were being set for the preview buffer even when the preview feature was disabled. The fix ensures that preview-specific keymaps are only configured when a preview buffer actually exists.

  • Adds a conditional check around preview buffer keymap setup
  • Prevents keymap configuration errors when preview is disabled

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread lua/fff/picker_ui.lua
@dmtrKovalenko dmtrKovalenko merged commit c327162 into dmtrKovalenko:main Aug 18, 2025
7 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.

3 participants