]> code.delx.au - gnu-emacs/commit
Fix cursor display when invisible text is at line beginning
authorEli Zaretskii <eliz@gnu.org>
Sun, 6 Dec 2015 17:27:12 +0000 (19:27 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 6 Dec 2015 17:27:12 +0000 (19:27 +0200)
commitcca5629f7856d88de940da942acbf5ca7f95a944
tree66e7d4b5a918a553a8944bbe9013ff693b4ecc87
parent302bbe00b31852942827dab42154f33411b99171
Fix cursor display when invisible text is at line beginning

* src/xdisp.c (redisplay_window): When scrolling fails to show
point, prefer using the desired matrix if possible for finding the
fallback glyph row for displaying the cursor.  (Bug#22098)
(row_containing_pos): Exit the loop as soon as we hit the first
disabled glyph row.  Otherwise we risk accessing garbled data and
departing to the no-no land.
src/xdisp.c