branch: master
commit 27b3da3f4b69d9d588f804b195266ed7891602e1
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
avy.el (avy-goto-char-in-line): Fix to this window
Fixes #58
---
avy.el | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/avy.el b/avy.el
index 9fa303b..11b724e 100644
--- a/avy.el
+++ b/avy.el
@@ -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