1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-22 18:35:09 +00:00

Fix display of hollow box cursor on NS

* src/nsterm.m (ns_draw_window_cursor): Fix verbatim
translations from X.
This commit is contained in:
Po Lu 2022-05-08 13:44:28 +08:00
parent 7474b55e28
commit 48c422e255

View File

@ -3079,7 +3079,9 @@ Note that CURSOR_WIDTH is meaningful only for (h)bar cursors.
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);