diff options
| author | Jan Djärv | 2014-11-09 11:23:46 +0100 |
|---|---|---|
| committer | Jan Djärv | 2014-11-09 11:23:46 +0100 |
| commit | 1af3b1135a6583de83c83d4d9fdcfb24f0b7335b (patch) | |
| tree | 1596da8844693b6b91c5cec53f771d11fe30af93 /src | |
| parent | 57db3f3adc251b628c5aea7e513a66f9305fdd4b (diff) | |
| download | emacs-1af3b1135a6583de83c83d4d9fdcfb24f0b7335b.tar.gz emacs-1af3b1135a6583de83c83d4d9fdcfb24f0b7335b.zip | |
Clean up merge error.
* nsterm.m (ns_set_vertical_scroll_bar)
(ns_set_horizontal_scroll_bar): Cleanup merge error.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/nsterm.m | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2ef9c6ba9aa..36f4dbdac66 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-11-09 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * nsterm.m (ns_set_vertical_scroll_bar) | ||
| 4 | (ns_set_horizontal_scroll_bar): Cleanup merge error. | ||
| 5 | |||
| 1 | 2014-11-09 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2014-11-09 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | * xgselect.c (xg_select): Don't assume n_gfds is nonnegative | 8 | * xgselect.c (xg_select): Don't assume n_gfds is nonnegative |
diff --git a/src/nsterm.m b/src/nsterm.m index 318f14acfc8..577b2a27724 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -3832,7 +3832,8 @@ ns_set_vertical_scroll_bar (struct window *window, | |||
| 3832 | } | 3832 | } |
| 3833 | } | 3833 | } |
| 3834 | 3834 | ||
| 3835 | [bar setPosition: position portion: portion whole: whole]; | 3835 | if (update_p) |
| 3836 | [bar setPosition: position portion: portion whole: whole]; | ||
| 3836 | unblock_input (); | 3837 | unblock_input (); |
| 3837 | } | 3838 | } |
| 3838 | 3839 | ||
| @@ -3852,6 +3853,7 @@ ns_set_horizontal_scroll_bar (struct window *window, | |||
| 3852 | int top, height, left, width; | 3853 | int top, height, left, width; |
| 3853 | int window_x, window_width; | 3854 | int window_x, window_width; |
| 3854 | int pixel_width = WINDOW_PIXEL_WIDTH (window); | 3855 | int pixel_width = WINDOW_PIXEL_WIDTH (window); |
| 3856 | BOOL update_p = YES; | ||
| 3855 | 3857 | ||
| 3856 | /* optimization; display engine sends WAY too many of these.. */ | 3858 | /* optimization; display engine sends WAY too many of these.. */ |
| 3857 | if (!NILP (window->horizontal_scroll_bar)) | 3859 | if (!NILP (window->horizontal_scroll_bar)) |
| @@ -3866,6 +3868,7 @@ ns_set_horizontal_scroll_bar (struct window *window, | |||
| 3866 | } | 3868 | } |
| 3867 | else | 3869 | else |
| 3868 | view->scrollbarsNeedingUpdate--; | 3870 | view->scrollbarsNeedingUpdate--; |
| 3871 | update_p = NO; | ||
| 3869 | } | 3872 | } |
| 3870 | } | 3873 | } |
| 3871 | 3874 | ||
| @@ -3907,6 +3910,7 @@ ns_set_horizontal_scroll_bar (struct window *window, | |||
| 3907 | 3910 | ||
| 3908 | bar = [[EmacsScroller alloc] initFrame: r window: win]; | 3911 | bar = [[EmacsScroller alloc] initFrame: r window: win]; |
| 3909 | wset_horizontal_scroll_bar (window, make_save_ptr (bar)); | 3912 | wset_horizontal_scroll_bar (window, make_save_ptr (bar)); |
| 3913 | update_p = YES; | ||
| 3910 | } | 3914 | } |
| 3911 | else | 3915 | else |
| 3912 | { | 3916 | { |