From 8e218339e164da57c22c6c72179d2499403b3ddb Mon Sep 17 00:00:00 2001 From: Pip Cet Date: Mon, 1 Jun 2020 18:07:51 +0000 Subject: [PATCH] Avoid cursor display artifacts for zero-width glyphs (Bug#41645) --- src/xdisp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index 2a059c7c60..b2c2ff09c6 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -31450,13 +31450,12 @@ display_and_set_cursor (struct window *w, bool on, && (!on || w->phys_cursor.x != x || w->phys_cursor.y != y + || w->phys_cursor_width != new_cursor_width /* HPOS can be negative in R2L rows whose exact_window_width_line_p flag is set (i.e. their newline would "overflow into the fringe"). */ || hpos < 0 - || new_cursor_type != w->phys_cursor_type - || ((new_cursor_type == BAR_CURSOR || new_cursor_type == HBAR_CURSOR) - && new_cursor_width != w->phys_cursor_width))) + || new_cursor_type != w->phys_cursor_type)) erase_phys_cursor (w); /* Don't check phys_cursor_on_p here because that flag is only set -- 2.27.0.rc0