]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_display_and_set_cursor): Don't show a hollow box
authorGerd Moellmann <gerd@gnu.org>
Mon, 18 Sep 2000 21:12:22 +0000 (21:12 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 18 Sep 2000 21:12:22 +0000 (21:12 +0000)
cursor for buffers whose cursor_type is nil.

src/ChangeLog
src/xterm.c

index e7136f8423a88fa5fe2db00fe9c6d0e766e3baec..d13d71ecb59560483d061840b56a561cf5baa8e2 100644 (file)
@@ -5,6 +5,9 @@
 
 2000-09-18  Gerd Moellmann  <gerd@gnu.org>
 
+       * 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
index f95d5b50ef54773af78de18adeb01918c9d029a3..c082124d32f21c2f95f88215fb33a7b023631cea 100644 (file)
@@ -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;