Fix lookup commands erroring when successful
Because message returns non-nil, and +lookup--jump-to needs to return nil when it fails.
This commit is contained in:
parent
574dae1426
commit
d0533fe99c
1 changed files with 2 additions and 1 deletions
|
@ -138,7 +138,8 @@ Otherwise, these properties are available to be set:
|
|||
'+lookup--run-hooks
|
||||
identifier (point-marker) other-window)))
|
||||
(cond ((null ret)
|
||||
(message "Could not find '%s'" identifier))
|
||||
(message "Could not find '%s'" identifier)
|
||||
nil)
|
||||
((markerp ret)
|
||||
(funcall (if other-window
|
||||
#'switch-to-buffer-other-window
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue