From 6331b7a6de770e9b41f0dec8895d16742dff1a97 Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Thu, 7 Jun 2018 18:11:56 +0200 Subject: [PATCH] avy.el (avy--process): Fix avy-goto-line for empty buffer Fixes #238 --- avy.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/avy.el b/avy.el index 6835e91..0735f78 100644 --- a/avy.el +++ b/avy.el @@ -737,7 +737,9 @@ Use OVERLAY-FN to visualize the decision overlay." (cands (copy-sequence candidates)) res) (if (= len 0) - (message "zero candidates") + (progn + (message "zero candidates") + t) (if (= len 1) (setq res (car candidates)) (unwind-protect