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:
Henrik Lissner 2019-02-27 03:06:16 -05:00
parent 574dae1426
commit d0533fe99c
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -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