branch: master
commit 4dcf0a9a9a2c4d08723e29d3e451ae2caf27acb5
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
avy.el (avy-goto-char-2): Translate "RET" to "C-j"
Fixes #153
---
avy.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/avy.el b/avy.el
index 4c380c5..da51488 100644
--- a/avy.el
+++ b/avy.el
@@ -970,6 +970,10 @@ The window scope is determined by `avy-all-windows' (ARG
negates it)."
(read-char "char 2: " t)
current-prefix-arg
nil nil))
+ (when (eq char1 ?
)
+ (setq char1 ?\n))
+ (when (eq char2 ?
)
+ (setq char2 ?\n))
(avy-with avy-goto-char-2
(avy--generic-jump
(regexp-quote (string char1 char2))