]> code.delx.au - gnu-emacs-elpa/commit
Special-case char RET to allow for jumping to end-of-lines.
authorTassilo Horn <tsdh@gnu.org>
Thu, 7 May 2015 12:37:31 +0000 (14:37 +0200)
committerTassilo Horn <tsdh@gnu.org>
Thu, 7 May 2015 12:53:22 +0000 (14:53 +0200)
commit903e1725179660f465d20246bc4511bb60a294dd
tree73bce750fc8165cb70c60b4c3bbadc4672f4886b
parent487d5ea20152100cb3f9fa2c69347e348c764750
Special-case char RET to allow for jumping to end-of-lines.

With this change you can use `avy-goto-char' also to jump to the end of
some currently visible line.  E.g., C-c j <return> (assuming C-c j is
bound to `avy-goto-char') makes all line endings jump targets.

`avy--overlay-at' had to be adapted so that the overlay at \n doesn't
make the line-break disappear.

`avy--overlay' had to be adapted in order not to put an overlay on the
char after (point-max) in case `avy--overlay-post' is used.  (Honestly,
this feature is a bit awkward with 'post overlays where the jump
location is visualized as first char in the next line.)
avy-jump.el