]> git.eshelyaron.com Git - emacs.git/commitdiff
Clean up merge error.
authorJan Djärv <jan.h.d@swipnet.se>
Sun, 9 Nov 2014 10:23:46 +0000 (11:23 +0100)
committerJan Djärv <jan.h.d@swipnet.se>
Sun, 9 Nov 2014 10:23:46 +0000 (11:23 +0100)
* nsterm.m (ns_set_vertical_scroll_bar)
(ns_set_horizontal_scroll_bar): Cleanup merge error.

src/ChangeLog
src/nsterm.m

index 2ef9c6ba9aa45f0f8f73b27acc3e7b13b5508a30..36f4dbdac660d4c445f6eb5e6804b99a8f3619b0 100644 (file)
@@ -1,3 +1,8 @@
+2014-11-09  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsterm.m (ns_set_vertical_scroll_bar)
+       (ns_set_horizontal_scroll_bar): Cleanup merge error.
+
 2014-11-09  Paul Eggert  <eggert@cs.ucla.edu>
 
        * xgselect.c (xg_select): Don't assume n_gfds is nonnegative
index 318f14acfc8f0242446bc3e1c25ad66a21e463b3..577b2a277249549c7769f6e0ccb2e91da453278e 100644 (file)
@@ -3832,7 +3832,8 @@ ns_set_vertical_scroll_bar (struct window *window,
         }
     }
 
-  [bar setPosition: position portion: portion whole: whole];
+  if (update_p)
+    [bar setPosition: position portion: portion whole: whole];
   unblock_input ();
 }
 
@@ -3852,6 +3853,7 @@ ns_set_horizontal_scroll_bar (struct window *window,
   int top, height, left, width;
   int window_x, window_width;
   int pixel_width = WINDOW_PIXEL_WIDTH (window);
+  BOOL update_p = YES;
 
   /* optimization; display engine sends WAY too many of these.. */
   if (!NILP (window->horizontal_scroll_bar))
@@ -3866,6 +3868,7 @@ ns_set_horizontal_scroll_bar (struct window *window,
             }
           else
             view->scrollbarsNeedingUpdate--;
+          update_p = NO;
         }
     }
 
@@ -3907,6 +3910,7 @@ ns_set_horizontal_scroll_bar (struct window *window,
 
       bar = [[EmacsScroller alloc] initFrame: r window: win];
       wset_horizontal_scroll_bar (window, make_save_ptr (bar));
+      update_p = YES;
     }
   else
     {