* src/window.c (get_phys_cursor_glyph): Fix Lisp_Object/int mixup.

This commit is contained in:
Stefan Monnier 2011-11-20 15:17:13 -05:00
parent f5a96a4fe8
commit b0d15b4f05
2 changed files with 5 additions and 1 deletions

View 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.

View 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