emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master d2270d8: Don't redraw the glyph on top of bar curso


From: Alan Third
Subject: [Emacs-diffs] master d2270d8: Don't redraw the glyph on top of bar cursors
Date: Sat, 9 Mar 2019 04:22:06 -0500 (EST)

branch: master
commit d2270d8fc93b5fb0b82fec4d85d122ea4e38dff3
Author: Alan Third <address@hidden>
Commit: Alan Third <address@hidden>

    Don't redraw the glyph on top of bar cursors
    
    * src/nsterm.m (ns_draw_window_cursor): Limit when we redraw the
    glyph.
---
 src/nsterm.m | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/nsterm.m b/src/nsterm.m
index ccf8ecc..81d36be 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -3262,8 +3262,9 @@ ns_draw_window_cursor (struct window *w, struct glyph_row 
*glyph_row,
           break;
         }
 
-      /* draw the character under the cursor */
-      if (cursor_type != NO_CURSOR)
+      /* Draw the character under the cursor.  Other terms only draw
+         the character on top of box cursors, so do the same here.  */
+      if (cursor_type == FILLED_BOX_CURSOR || cursor_type == HOLLOW_BOX_CURSOR)
         draw_phys_cursor_glyph (w, glyph_row, DRAW_CURSOR);
 
       ns_reset_clipping (f);



reply via email to

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