(fast_find_position): Call row_containing_pos
authorGerd Moellmann <gerd@gnu.org>
Wed, 24 Oct 2001 09:12:40 +0000 (09:12 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 24 Oct 2001 09:12:40 +0000 (09:12 +0000)
with additional argument.

src/ChangeLog
src/w32term.c
src/xterm.c

index 223cdea..81b698e 100644 (file)
@@ -1,5 +1,16 @@
 2001-10-24  Gerd Moellmann  <gerd@gnu.org>
 
+       * xdisp.c (try_window_reusing_current_matrix): Use
+       row_containing_pos.
+       (row_containing_pos): Take additional argument DY.  Treat
+       rows ending in middle of char differently.
+       (display_line): Handle tabs on window systems differently.
+
+       * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
+       with additional argument.
+
+       * dispextern.h (row_containing_pos): Adjust prototype.
+
        * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
        (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
        (try_window_id, try_window_reusing_current_matrix)
index 2b6c600..7683620 100644 (file)
@@ -7092,7 +7092,7 @@ fast_find_position (w, charpos, hpos, vpos, x, y, stop)
   int i, past_end = 0;
 
   first = MATRIX_FIRST_TEXT_ROW (w->current_matrix);
-  row = row_containing_pos (w, charpos, first, NULL);
+  row = row_containing_pos (w, charpos, first, NULL, 0);
   if (row == NULL)
     {
       if (charpos < MATRIX_ROW_START_CHARPOS (first))
index 1d46b26..7a069a0 100644 (file)
@@ -7479,7 +7479,7 @@ fast_find_position (w, charpos, hpos, vpos, x, y, stop)
   int i, past_end = 0;
 
   first = MATRIX_FIRST_TEXT_ROW (w->current_matrix);
-  row = row_containing_pos (w, charpos, first, NULL);
+  row = row_containing_pos (w, charpos, first, NULL, 0);
   if (row == NULL)
     {
       if (charpos < MATRIX_ROW_START_CHARPOS (first))