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))) avy-style)))
;;;###autoload ;;;###autoload
(defun avy-goto-char-in-line (char &optional arg) (defun avy-goto-char-in-line (char)
"Jump to the currently visible CHAR in the current line. "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: ")))
(interactive (list (read-char "char: ") (let ((avy-all-windows nil))
current-prefix-arg))
(let ((avy-all-windows
(if arg
(not avy-all-windows)
avy-all-windows)))
(avy--with-avy-keys avy-goto-char (avy--with-avy-keys avy-goto-char
(avy--goto (avy--goto
(avy--process (avy--process