avy.el (avy-goto-char-in-line): Fix to this window

Fixes #58
This commit is contained in:
Oleh Krehel 2015-06-02 18:54:04 +02:00
parent fc93fe676c
commit 27b3da3f4b

13
avy.el
View File

@ -681,15 +681,10 @@ The window scope is determined by `avy-all-windows' (ARG negates it)."
avy-style)))
;;;###autoload
(defun avy-goto-char-in-line (char &optional arg)
"Jump to the currently visible CHAR in the current line.
The window scope is determined by `avy-all-windows' (ARG negates it)."
(interactive (list (read-char "char: ")
current-prefix-arg))
(let ((avy-all-windows
(if arg
(not avy-all-windows)
avy-all-windows)))
(defun avy-goto-char-in-line (char)
"Jump to the currently visible CHAR in the current line."
(interactive (list (read-char "char: ")))
(let ((avy-all-windows nil))
(avy--with-avy-keys avy-goto-char
(avy--goto
(avy--process