avy.el (avy-goto-char-2): Translate "RET" to "C-j"

Fixes #153
This commit is contained in:
Oleh Krehel 2016-06-01 07:58:16 +02:00
parent 33af738ae7
commit 4dcf0a9a9a

4
avy.el
View File

@ -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))