* src/window.c (get_phys_cursor_glyph): Fix Lisp_Object/int mixup.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 20 Nov 2011 20:17:13 +0000 (15:17 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 20 Nov 2011 20:17:13 +0000 (15:17 -0500)
src/ChangeLog
src/window.c

index d0d3363..5640476 100644 (file)
@@ -1,3 +1,7 @@
+2011-11-20  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * window.c (get_phys_cursor_glyph): Fix Lisp_Object/int mixup.
+
 2011-11-20  Juanma Barranquero  <lekktu@gmail.com>
 
        * nsfont.m (syms_of_nsfont) <ns-reg-to-script>: Fix typo.
index 4a5dcd8..21c0cea 100644 (file)
@@ -5783,7 +5783,7 @@ get_phys_cursor_glyph (struct window *w)
   if (!row->enabled_p)
     return NULL;
 
-  if (w->hscroll)
+  if (XINT (w->hscroll))
     {
       /* When the window is hscrolled, cursor hpos can legitimately be
         out of bounds, but we draw the cursor at the corresponding