]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/xdisp.c (hscroll_window_tree): Fix type typo.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 4 Sep 2019 04:54:58 +0000 (21:54 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 4 Sep 2019 05:46:12 +0000 (22:46 -0700)
src/xdisp.c

index 75bc536cb9fa20e553050f73bde78543edef84ed..94f969f37cfedbbd8d37301f043d3374a78606b0 100644 (file)
@@ -13509,7 +13509,8 @@ hscroll_window_tree (Lisp_Object window)
                 get glyph rows whose start and end have zero buffer
                 positions, which we cannot handle below.  Just skip
                 such windows.  */
-             && CHARPOS (cursor_row->start.pos) >= BUF_BEG (w->contents)
+             && (CHARPOS (cursor_row->start.pos)
+                 >= BUF_BEG (XBUFFER (w->contents)))
              /* For left-to-right rows, hscroll when cursor is either
                 (i) inside the right hscroll margin, or (ii) if it is
                 inside the left margin and the window is already