From 5cefa566fb322a724ed67797b9d3124538d6dd7e Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 18 Sep 2000 21:12:22 +0000 Subject: [PATCH] (x_display_and_set_cursor): Don't show a hollow box cursor for buffers whose cursor_type is nil. --- src/ChangeLog | 3 +++ src/xterm.c | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index e7136f8423a..d13d71ecb59 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -5,6 +5,9 @@ 2000-09-18 Gerd Moellmann + * xterm.c (x_display_and_set_cursor): Don't show a hollow box + cursor for buffers whose cursor_type is nil. + * xterm.c (x_draw_image_glyph_string): Remove a comment describing a feature to implement that is already implemented. (note_mouse_highlight, x_find_ccl_program): Avoid some compiler diff --git a/src/xterm.c b/src/xterm.c index f95d5b50ef5..c082124d32f 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10669,7 +10669,9 @@ x_display_and_set_cursor (w, on, hpos, vpos, x, y) { extern int cursor_in_non_selected_windows; - if (MINI_WINDOW_P (w) || !cursor_in_non_selected_windows) + if (MINI_WINDOW_P (w) + || !cursor_in_non_selected_windows + || NILP (XBUFFER (w->buffer)->cursor_type)) new_cursor_type = NO_CURSOR; else new_cursor_type = HOLLOW_BOX_CURSOR; -- 2.39.2