]> git.eshelyaron.com Git - emacs.git/commit
Avoid errors in vertical-motion when buffer is narrowed
authorEli Zaretskii <eliz@gnu.org>
Mon, 3 Jul 2017 15:57:01 +0000 (18:57 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 3 Jul 2017 15:57:01 +0000 (18:57 +0300)
commit52bfb7d4d6595302b5261ff810951e0b3281352c
tree0ce66e5db8fff172a6843af2666dbbf58bf3e267
parent4c9353a5840b285631a86a5bad2b48ea6276abf3
Avoid errors in vertical-motion when buffer is narrowed

* src/indent.c (Fvertical_motion): If need to start from
window-start, and it is outside of the accessible portion,
temporarily widen the buffer.  This avoids errors in evil-mode.
Reported by James Nguyen <james@jojojames.com>.
src/indent.c