]> git.eshelyaron.com Git - emacs.git/commit
Avoid assertion violations when scrolling narrowed buffer
authorEli Zaretskii <eliz@gnu.org>
Mon, 5 Sep 2016 16:57:22 +0000 (19:57 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 5 Sep 2016 16:57:22 +0000 (19:57 +0300)
commit6acff25280dbb97b5e9ddfd872b33ceb36b0470a
tree24b7152457c11d14aefdf8952ce7d3500586be05
parentcfaf18a27c262694750400005e882f1cfc7ff2b0
Avoid assertion violations when scrolling narrowed buffer

* src/window.c (window_scroll_pixel_based):
* src/xdisp.c (pos_visible_p): Don't allow simulated redisplay to
start outside the accessible portion of the buffer.  This avoids
assertion violations when some Lisp narrows the buffer to less
than the current window, and then attempts to scroll the buffer.
src/window.c
src/xdisp.c