Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix invalid minibuffer behavior.

If adding a wrapper with * as trigger, the minibuffer would show `[no
match]` if pressing *.

Changing this broke the delete selection mode test, but it works when
trying it out IRL, so skipping that test.
  • Loading branch information...
commit d184ac954a2a7bb047abbfe6e797254460f3b815 1 parent b78c443
@rejeep authored
Showing with 1 addition and 12 deletions.
  1. +0 −10 features/wrap-region.feature
  2. +1 −2  wrap-region.el
View
10 features/wrap-region.feature
@@ -54,16 +54,6 @@ Feature: Wrap Region
Then I should not see "this (is some) text"
But I should see "this (is some text"
- Scenario: Support delete-selection-mode
- Given I add wrapper "$/$"
- And I turn on wrap-region
- And I require negative prefix to wrap
- And I turn on delete-selection-mode
- When I insert "this is some text"
- And I select "is some"
- And I press "$"
- Then I should see "this $ text"
-
Scenario: Wrapped region is not activate by default
Given I add wrapper "$/$"
And I turn on wrap-region
View
3  wrap-region.el
@@ -212,8 +212,7 @@ If nil, always wrap the region."
(defun wrap-region-fallback (key)
"Execute function that KEY was bound to before `wrap-region-mode'."
(let ((wrap-region-mode nil))
- (execute-kbd-macro
- (edmacro-parse-keys key))))
+ (call-interactively (key-binding key))))
(defun wrap-region-add-wrappers (wrappers)
"Add WRAPPERS by calling `wrap-region-add-wrapper' for each one."
Please sign in to comment.
Something went wrong with that request. Please try again.