From 48c422e255095658ea8ff20a59a6d306910281c5 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 8 May 2022 13:44:28 +0800 Subject: [PATCH] Fix display of hollow box cursor on NS * src/nsterm.m (ns_draw_window_cursor): Fix verbatim translations from X. --- src/nsterm.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.2