mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -138,7 +138,8 @@ Otherwise, these properties are available to be set:
|
|||||||
'+lookup--run-hooks
|
'+lookup--run-hooks
|
||||||
identifier (point-marker) other-window)))
|
identifier (point-marker) other-window)))
|
||||||
(cond ((null ret)
|
(cond ((null ret)
|
||||||
(message "Could not find '%s'" identifier))
|
(message "Could not find '%s'" identifier)
|
||||||
|
nil)
|
||||||
((markerp ret)
|
((markerp ret)
|
||||||
(funcall (if other-window
|
(funcall (if other-window
|
||||||
#'switch-to-buffer-other-window
|
#'switch-to-buffer-other-window
|
||||||
|
Reference in New Issue
Block a user