aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/window.c b/src/window.c
index 5a7655999f5..47c47fe0f51 100644
--- a/src/window.c
+++ b/src/window.c
@@ -6656,10 +6656,12 @@ display marginal areas and the text area. */)
6656 CHECK_NATNUM (left_width); 6656 CHECK_NATNUM (left_width);
6657 if (!NILP (right_width)) 6657 if (!NILP (right_width))
6658 CHECK_NATNUM (right_width); 6658 CHECK_NATNUM (right_width);
6659 6659
6660 if (!EQ (w->left_fringe_width, left_width) 6660 /* Do nothing on a tty. */
6661 || !EQ (w->right_fringe_width, right_width) 6661 if (FRAME_WINDOW_P (WINDOW_XFRAME (w))
6662 || !EQ (w->fringes_outside_margins, outside_margins)) 6662 && (!EQ (w->left_fringe_width, left_width)
6663 || !EQ (w->right_fringe_width, right_width)
6664 || !EQ (w->fringes_outside_margins, outside_margins)))
6663 { 6665 {
6664 w->left_fringe_width = left_width; 6666 w->left_fringe_width = left_width;
6665 w->right_fringe_width = right_width; 6667 w->right_fringe_width = right_width;
@@ -6687,10 +6689,11 @@ Value is a list of the form (LEFT-WIDTH RIGHT-WIDTH OUTSIDE-MARGINS). */)
6687 Lisp_Object window; 6689 Lisp_Object window;
6688{ 6690{
6689 struct window *w = decode_window (window); 6691 struct window *w = decode_window (window);
6692
6690 return Fcons (make_number (WINDOW_LEFT_FRINGE_WIDTH (w)), 6693 return Fcons (make_number (WINDOW_LEFT_FRINGE_WIDTH (w)),
6691 Fcons (make_number (WINDOW_RIGHT_FRINGE_WIDTH (w)), 6694 Fcons (make_number (WINDOW_RIGHT_FRINGE_WIDTH (w)),
6692 Fcons ((WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w) ? 6695 Fcons ((WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w)
6693 Qt : Qnil), Qnil))); 6696 ? Qt : Qnil), Qnil)));
6694} 6697}
6695 6698
6696 6699