(display_text_line): When handling selective > 0,
authorKarl Heuer <kwzh@gnu.org>
Sun, 12 Apr 1998 06:45:08 +0000 (06:45 +0000)
committerKarl Heuer <kwzh@gnu.org>
Sun, 12 Apr 1998 06:45:08 +0000 (06:45 +0000)
update pos and pos_byte with results of calling scan_newline.

src/xdisp.c

index 86e776d..069a738 100644 (file)
@@ -3599,6 +3599,7 @@ display_text_line (w, start, start_byte, vpos, hpos, taboffset, ovstr_done)
              invis = 1;
              INC_BOTH (pos, pos_byte);
              scan_newline (pos, pos_byte, ZV, ZV_BYTE, 1, 1);
+             pos = PT, pos_byte = PT_BYTE;
              if (FETCH_BYTE (pos_byte - 1) == '\n')
                {
                  pos--;