New window options: force-width and force-height. This will force a window to

an arbitrary width and height (0 for the default unlimited). This is neat for
  emacs which doesn't have a sensible way to force hard wrapping at 80
  columns. Also, don't try to be clever and use clr_eol when redrawing the
  whole screen, it causes trouble since the redraw functions are used to draw
  the blank areas too.
This commit is contained in:
Nicholas Marriott
2008-06-14 16:47:20 +00:00
parent 62d7ad2690
commit 0f403474aa
10 changed files with 95 additions and 91 deletions

View File

@ -1,4 +1,4 @@
/* $Id: resize.c,v 1.14 2008-06-14 12:05:06 nicm Exp $ */
/* $Id: resize.c,v 1.15 2008-06-14 16:47:20 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -114,6 +114,11 @@ recalculate_sizes(void)
}
w->flags &= ~WINDOW_HIDDEN;
if (ssx > w->limitx)
ssx = w->limitx;
if (ssy > w->limity)
ssy = w->limity;
if (screen_size_x(&w->base) == ssx &&
screen_size_y(&w->base) == ssy)
continue;