]> git.eshelyaron.com Git - emacs.git/commitdiff
xdisp.c (hscroll_window_tree): Sync comment with the code.
authorEli Zaretskii <eliz@gnu.org>
Thu, 15 Sep 2011 15:41:03 +0000 (18:41 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 15 Sep 2011 15:41:03 +0000 (18:41 +0300)
src/xdisp.c

index 8adc83b50686ac006c9c5fdd539e63f009794ea8..1ccaa0641b0d7ff67436db5b017fa20f1b1e6c85 100644 (file)
@@ -11916,9 +11916,9 @@ hscroll_window_tree (Lisp_Object window)
                }
              hscroll = max (hscroll, XFASTINT (w->min_hscroll));
 
-             /* Don't call Fset_window_hscroll if value hasn't
-                changed because it will prevent redisplay
-                optimizations.  */
+             /* Don't will prevent redisplay optimizations if hscroll
+                hasn't changed, as it will unnecessarily slow down
+                redisplay.  */
              if (XFASTINT (w->hscroll) != hscroll)
                {
                  XBUFFER (w->buffer)->prevent_redisplay_optimizations_p = 1;