emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/xdisp.c


From: Kim F . Storm
Subject: [Emacs-diffs] Changes to emacs/src/xdisp.c
Date: Sun, 21 Nov 2004 10:53:45 -0500

Index: emacs/src/xdisp.c
diff -c emacs/src/xdisp.c:1.939 emacs/src/xdisp.c:1.940
*** emacs/src/xdisp.c:1.939     Sun Nov 21 14:59:40 2004
--- emacs/src/xdisp.c   Sun Nov 21 15:47:55 2004
***************
*** 20120,20125 ****
--- 20120,20126 ----
      {
        int x, y;
        int header_line_height = WINDOW_HEADER_LINE_HEIGHT (w);
+       int width;
  
        cursor_glyph = get_phys_cursor_glyph (w);
        if (cursor_glyph == NULL)
***************
*** 20127,20135 ****
  
        x = WINDOW_TEXT_TO_FRAME_PIXEL_X (w, w->phys_cursor.x);
        y = WINDOW_TO_FRAME_PIXEL_Y (w, max (header_line_height, 
cursor_row->y));
  
!       rif->clear_frame_area (f, x, y,
!                            cursor_glyph->pixel_width, 
cursor_row->visible_height);
      }
  
    /* Erase the cursor by redrawing the character underneath it.  */
--- 20128,20137 ----
  
        x = WINDOW_TEXT_TO_FRAME_PIXEL_X (w, w->phys_cursor.x);
        y = WINDOW_TO_FRAME_PIXEL_Y (w, max (header_line_height, 
cursor_row->y));
+       width = min (cursor_glyph->pixel_width,
+                  window_box_width (w, TEXT_AREA) - w->phys_cursor.x);
  
!       rif->clear_frame_area (f, x, y, width, cursor_row->visible_height);
      }
  
    /* Erase the cursor by redrawing the character underneath it.  */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]