summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-11-16 21:44:15 +0000
committerRichard M. Stallman <rms@gnu.org>1994-11-16 21:44:15 +0000
commitcc9b34b0b425582ffbf0d9a99d34e15646187a2a (patch)
treee9a30201e1cac38aceb3417ce7f3bcc1408967f1
parent350b75679b4745e016f60d06fdced67cd385159f (diff)
downloademacs-cc9b34b0b425582ffbf0d9a99d34e15646187a2a.tar.gz
(try_window, display_text_line): Undo previous change.
-rw-r--r--src/xdisp.c26
1 files changed, 11 insertions, 15 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index bfb2b139d30..6dc5f1811d5 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1447,19 +1447,15 @@ try_window (window, pos)
if (val.vpos) tab_offset = 0;
vpos++;
if (pos != val.bufpos)
- {
- last_text_vpos = vpos;
- /* Next line, unless prev line ended in end of buffer with no cr. */
- if (val.vpos && (FETCH_CHAR (val.bufpos - 1) != '\n'
+ last_text_vpos
+ /* Next line, unless prev line ended in end of buffer with no cr */
+ = vpos - (val.vpos && (FETCH_CHAR (val.bufpos - 1) != '\n'
#ifdef USE_TEXT_PROPERTIES
- || ! NILP (Fget_char_property
- (val.bufpos-1,
- Qinvisible,
- XWINDOW (window)->buffer))
+ || ! NILP (Fget_char_property (val.bufpos-1,
+ Qinvisible,
+ window))
#endif
- ))
- --last_text_vpos;
- }
+ ));
pos = val.bufpos;
}
@@ -2256,17 +2252,17 @@ display_text_line (w, start, vpos, hpos, taboffset)
the next property change */
while (pos == next_invisible && pos < end)
{
- Lisp_Object position, limit, endpos, prop;
+ Lisp_Object position, limit, endpos, prop, ww;
XSETFASTINT (position, pos);
- prop = Fget_char_property (position, Qinvisible, w->buffer);
+ XSETWINDOW (ww, w);
+ prop = Fget_char_property (position, Qinvisible, ww);
/* This is just an estimate to give reasonable
performance; nothing should go wrong if it is too small. */
limit = Fnext_overlay_change (position);
if (XFASTINT (limit) > pos + 50)
XSETFASTINT (limit, pos + 50);
endpos = Fnext_single_property_change (position, Qinvisible,
- Fcurrent_buffer (),
- limit);
+ Fcurrent_buffer (), limit);
if (INTEGERP (endpos))
next_invisible = XINT (endpos);
else