Skip to content

Commit 7518bd9

Browse files
committed
Fix SPC SPC in motion state
1 parent 59c058c commit 7518bd9

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

meow-util.el

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -473,13 +473,18 @@ to use the status buffer's original `k' binding at point."
473473
(local-set-key (kbd rebind-key)
474474
(lambda ()
475475
(interactive)
476-
(call-interactively
477-
;; Local maps are those local to the buffer
478-
;; or a region of the buffer.
479-
(if-let ((local (lookup-key (current-local-map) key)))
480-
(or (command-remapping local)
481-
local)
482-
cmd))))))))))
476+
;; Local maps are those local to the buffer
477+
;; or a region of the buffer.
478+
(let* ((local (lookup-key (current-local-map) key))
479+
(remapped (command-remapping local)))
480+
(call-interactively
481+
(cond
482+
((commandp remapped)
483+
remapped)
484+
((commandp local)
485+
local)
486+
(t
487+
cmd))))))))))))
483488

484489
(defun meow--prepare-region-for-kill ()
485490
(when (and (equal 'line (cdr (meow--selection-type)))

0 commit comments

Comments
 (0)