From: Po Lu Date: Sun, 8 May 2022 05:44:28 +0000 (+0800) Subject: Fix display of hollow box cursor on NS X-Git-Tag: emacs-29.0.90~1910^2~915 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=48c422e255095658ea8ff20a59a6d306910281c5;p=emacs.git Fix display of hollow box cursor on NS * src/nsterm.m (ns_draw_window_cursor): Fix verbatim translations from X. --- diff --git a/src/nsterm.m b/src/nsterm.m index fef7f0dc6c8..82062033335 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -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);