diff options
| author | Richard M. Stallman | 1994-11-16 21:44:15 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-11-16 21:44:15 +0000 |
| commit | cc9b34b0b425582ffbf0d9a99d34e15646187a2a (patch) | |
| tree | e9a30201e1cac38aceb3417ce7f3bcc1408967f1 /src | |
| parent | 350b75679b4745e016f60d06fdced67cd385159f (diff) | |
| download | emacs-cc9b34b0b425582ffbf0d9a99d34e15646187a2a.tar.gz emacs-cc9b34b0b425582ffbf0d9a99d34e15646187a2a.zip | |
(try_window, display_text_line): Undo previous change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 26 |
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) | |||
| 1447 | if (val.vpos) tab_offset = 0; | 1447 | if (val.vpos) tab_offset = 0; |
| 1448 | vpos++; | 1448 | vpos++; |
| 1449 | if (pos != val.bufpos) | 1449 | if (pos != val.bufpos) |
| 1450 | { | 1450 | last_text_vpos |
| 1451 | last_text_vpos = vpos; | 1451 | /* Next line, unless prev line ended in end of buffer with no cr */ |
| 1452 | /* Next line, unless prev line ended in end of buffer with no cr. */ | 1452 | = vpos - (val.vpos && (FETCH_CHAR (val.bufpos - 1) != '\n' |
| 1453 | if (val.vpos && (FETCH_CHAR (val.bufpos - 1) != '\n' | ||
| 1454 | #ifdef USE_TEXT_PROPERTIES | 1453 | #ifdef USE_TEXT_PROPERTIES |
| 1455 | || ! NILP (Fget_char_property | 1454 | || ! NILP (Fget_char_property (val.bufpos-1, |
| 1456 | (val.bufpos-1, | 1455 | Qinvisible, |
| 1457 | Qinvisible, | 1456 | window)) |
| 1458 | XWINDOW (window)->buffer)) | ||
| 1459 | #endif | 1457 | #endif |
| 1460 | )) | 1458 | )); |
| 1461 | --last_text_vpos; | ||
| 1462 | } | ||
| 1463 | pos = val.bufpos; | 1459 | pos = val.bufpos; |
| 1464 | } | 1460 | } |
| 1465 | 1461 | ||
| @@ -2256,17 +2252,17 @@ display_text_line (w, start, vpos, hpos, taboffset) | |||
| 2256 | the next property change */ | 2252 | the next property change */ |
| 2257 | while (pos == next_invisible && pos < end) | 2253 | while (pos == next_invisible && pos < end) |
| 2258 | { | 2254 | { |
| 2259 | Lisp_Object position, limit, endpos, prop; | 2255 | Lisp_Object position, limit, endpos, prop, ww; |
| 2260 | XSETFASTINT (position, pos); | 2256 | XSETFASTINT (position, pos); |
| 2261 | prop = Fget_char_property (position, Qinvisible, w->buffer); | 2257 | XSETWINDOW (ww, w); |
| 2258 | prop = Fget_char_property (position, Qinvisible, ww); | ||
| 2262 | /* This is just an estimate to give reasonable | 2259 | /* This is just an estimate to give reasonable |
| 2263 | performance; nothing should go wrong if it is too small. */ | 2260 | performance; nothing should go wrong if it is too small. */ |
| 2264 | limit = Fnext_overlay_change (position); | 2261 | limit = Fnext_overlay_change (position); |
| 2265 | if (XFASTINT (limit) > pos + 50) | 2262 | if (XFASTINT (limit) > pos + 50) |
| 2266 | XSETFASTINT (limit, pos + 50); | 2263 | XSETFASTINT (limit, pos + 50); |
| 2267 | endpos = Fnext_single_property_change (position, Qinvisible, | 2264 | endpos = Fnext_single_property_change (position, Qinvisible, |
| 2268 | Fcurrent_buffer (), | 2265 | Fcurrent_buffer (), limit); |
| 2269 | limit); | ||
| 2270 | if (INTEGERP (endpos)) | 2266 | if (INTEGERP (endpos)) |
| 2271 | next_invisible = XINT (endpos); | 2267 | next_invisible = XINT (endpos); |
| 2272 | else | 2268 | else |