]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix display of hollow box cursor on NS
authorPo Lu <luangruo@yahoo.com>
Sun, 8 May 2022 05:44:28 +0000 (13:44 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 8 May 2022 05:44:28 +0000 (13:44 +0800)
* src/nsterm.m (ns_draw_window_cursor): Fix verbatim
translations from X.

src/nsterm.m

index fef7f0dc6c8ebc44a9ac1f1cb1bf343547007624..82062033335614e102f532840ef6fb83ff45a120 100644 (file)
@@ -3079,7 +3079,9 @@ ns_draw_window_cursor (struct window *w, struct glyph_row *glyph_row,
       break;
     case HOLLOW_BOX_CURSOR:
       draw_phys_cursor_glyph (w, glyph_row, DRAW_NORMAL_TEXT);
-      [NSBezierPath strokeRect: r];
+
+      /* This works like it does in PostScript, not X Windows.  */
+      [NSBezierPath strokeRect: NSInsetRect (r, 0.5, 0.5)];
       break;
     case HBAR_CURSOR:
       NSRectFill (r);