diff options
| author | Kim F. Storm | 2003-09-24 23:52:45 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2003-09-24 23:52:45 +0000 |
| commit | 3834380d153581bd4b0387ac4cb6ea591e510595 (patch) | |
| tree | 5e54af8e63306f667066e490eddf94e5d370d9fe /src | |
| parent | fbe574208aebcaaf029a96d77c5738eda958aab4 (diff) | |
| download | emacs-3834380d153581bd4b0387ac4cb6ea591e510595.tar.gz emacs-3834380d153581bd4b0387ac4cb6ea591e510595.zip | |
(set_window_buffer): Fix redisplay problems when
switching between buffers with different display margin widths.
Diffstat (limited to 'src')
| -rw-r--r-- | src/window.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index b61db3ffbb0..ce7b086833e 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -2853,6 +2853,9 @@ set_window_buffer (window, buffer, run_hooks_p, keep_margins_p) | |||
| 2853 | 2853 | ||
| 2854 | /* This may call adjust_window_margins three times, so | 2854 | /* This may call adjust_window_margins three times, so |
| 2855 | temporarily disable window margins. */ | 2855 | temporarily disable window margins. */ |
| 2856 | Lisp_Object save_left = w->left_margin_cols; | ||
| 2857 | Lisp_Object save_right = w->right_margin_cols; | ||
| 2858 | |||
| 2856 | w->left_margin_cols = w->right_margin_cols = Qnil; | 2859 | w->left_margin_cols = w->right_margin_cols = Qnil; |
| 2857 | 2860 | ||
| 2858 | Fset_window_fringes (window, | 2861 | Fset_window_fringes (window, |
| @@ -2863,6 +2866,9 @@ set_window_buffer (window, buffer, run_hooks_p, keep_margins_p) | |||
| 2863 | b->scroll_bar_width, | 2866 | b->scroll_bar_width, |
| 2864 | b->vertical_scroll_bar_type, Qnil); | 2867 | b->vertical_scroll_bar_type, Qnil); |
| 2865 | 2868 | ||
| 2869 | w->left_margin_cols = save_left; | ||
| 2870 | w->right_margin_cols = save_right; | ||
| 2871 | |||
| 2866 | Fset_window_margins (window, | 2872 | Fset_window_margins (window, |
| 2867 | b->left_margin_cols, b->right_margin_cols); | 2873 | b->left_margin_cols, b->right_margin_cols); |
| 2868 | } | 2874 | } |