diff --git a/changelog.md b/changelog.md index c0eb9c9d..72fea08e 100644 --- a/changelog.md +++ b/changelog.md @@ -1,9 +1,14 @@ Upcoming (TBD) ============== +Bug Fixes +-------- +* Limit Alt-R bindings to Emacs mode. + + Internal -------- -* Only read "my" configuration files once, rather than once per call to read_my_cnf_files +* Only read "my" configuration files once, rather than once per call to read_my_cnf_files. 1.38.3 (2025/08/21) diff --git a/mycli/key_bindings.py b/mycli/key_bindings.py index 15d9dc63..7f44856b 100644 --- a/mycli/key_bindings.py +++ b/mycli/key_bindings.py @@ -150,7 +150,7 @@ def _(event: KeyPressEvent) -> None: else: search_history(event) - @kb.add("escape", "r", filter=control_is_searchable) + @kb.add("escape", "r", filter=control_is_searchable & emacs_mode) def _(event: KeyPressEvent) -> None: """Search history using fzf when available.""" _logger.debug("Detected key.")