From 04cb68403d7a94e08a08821942cbc6da6494467a Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sat, 5 Mar 2011 18:52:45 -0500 Subject: [PATCH] * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit. --- src/ChangeLog | 4 ++++ src/nsterm.m | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index e07b74a35ee..57a2b618d63 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2011-03-05 Chong Yidong + + * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit. + 2011-03-02 Ken Brown * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB. diff --git a/src/nsterm.m b/src/nsterm.m index 4c47e65dc96..9237205a0f4 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -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; } -- 2.39.5