buffer position where we are to start the iteration.
(handle_invisible_prop): Record in it->stop_charpos the position
where the invisible text ends. (Bug#18035)
+ (hscroll_window_tree): Don't try hscrolling windows whose cursor
+ row has zero buffer position as their start position. Reported by
+ martin rudalics <rudalics@gmx.at>.
2014-07-16 Eli Zaretskii <eliz@gnu.org>
h_margin = hscroll_margin * WINDOW_FRAME_COLUMN_WIDTH (w);
if (!NILP (Fbuffer_local_value (Qauto_hscroll_mode, w->contents))
+ /* In some pathological cases, like restoring a window
+ configuration into a frame that is much smaller than
+ the one from which the configuration was saved, we
+ get glyph rows whose start and end have zero buffer
+ positions, which we cannot handle below. Just skip
+ such windows. */
+ && CHARPOS (cursor_row->start.pos) >= BUF_BEG (w->contents)
/* For left-to-right rows, hscroll when cursor is either
(i) inside the right hscroll margin, or (ii) if it is
inside the left margin and the window is already