* For mailing lists, Alpine adds a description of the type of link
[alpine.git] / pico / window.c
blob0f9ac0b9182a497faf1af6dbd982e00d5276b993
1 /*
2 * ========================================================================
3 * Copyright 2006 University of Washington
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * ========================================================================
15 * Window management. Some of the functions are internal, and some are
16 * attached to keys that the user actually types.
19 #include "headers.h"
23 * Refresh the screen. With no argument, it just does the refresh. With an
24 * argument it recenters "." in the current window. Bound to "C-L".
26 int
27 pico_refresh(int f, int n)
30 * since pine mode isn't using the traditional mode line, sgarbf isn't
31 * enough.
33 if(Pmaster && curwp)
34 curwp->w_flag |= WFMODE;
36 if (f == FALSE)
37 sgarbf = TRUE;
38 else if(curwp){
39 curwp->w_force = 0; /* Center dot. */
40 curwp->w_flag |= WFFORCE;
43 return (TRUE);