branch: master
commit 75c873bc9e4cc9d64a8d60e2946f3a36a58a34ab
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    ivy.el (ivy-avy): Fix for ivy-format-function-arrow
    
    Fixes #1004
---
 ivy.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ivy.el b/ivy.el
index ce6dafa..e34546f 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1313,6 +1313,8 @@ On error (read-only), call `ivy-on-del-error-function'."
              (avy--style-fn avy-style)))))
     (when (number-or-marker-p candidate)
       (goto-char candidate)
+      (when (eq ivy-format-function 'ivy-format-function-arrow)
+        (forward-char 2))
       (ivy--done
        (buffer-substring-no-properties
         (point) (line-end-position))))))

Reply via email to