From 0f403474aaf0f4aa4475ef6095d1ab420ebfed60 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 14 Jun 2008 16:47:20 +0000 Subject: 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. --- window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'window.c') diff --git a/window.c b/window.c index 637f6d8f..555b5274 100644 --- a/window.c +++ b/window.c @@ -1,4 +1,4 @@ -/* $Id: window.c,v 1.40 2008-06-04 20:17:25 nicm Exp $ */ +/* $Id: window.c,v 1.41 2008-06-14 16:47:20 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -202,6 +202,7 @@ window_create(const char *name, w->out = buffer_create(BUFSIZ); w->mode = NULL; w->flags = 0; + w->limitx = w->limity = UINT_MAX; screen_create(&w->base, sx, sy, hlimit); w->screen = &w->base; input_init(w); -- cgit v1.2.3