* nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
authorChong Yidong <cyd@stupidchicken.com>
Sat, 5 Mar 2011 23:52:45 +0000 (18:52 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 5 Mar 2011 23:52:45 +0000 (18:52 -0500)
src/ChangeLog
src/nsterm.m

index e07b74a..57a2b61 100644 (file)
@@ -1,3 +1,7 @@
+2011-03-05  Chong Yidong  <cyd@stupidchicken.com>
+
+       * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
+
 2011-03-02  Ken Brown  <kbrown@cornell.edu>
 
        * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
index 4c47e65..9237205 100644 (file)
@@ -2283,8 +2283,7 @@ ns_draw_window_cursor (struct window *w, struct glyph_row *glyph_row,
   if (cursor_type == BAR_CURSOR || cursor_type == HBAR_CURSOR)
     {
       if (cursor_width < 0)
-       cursor_width = FRAME_CURSOR_WIDTH (f);
-      cursor_width = min (cursor_width, 1);
+       cursor_width = max (FRAME_CURSOR_WIDTH (f), 1);
       w->phys_cursor_width = cursor_width;
     }