~ubuntu-branches/debian/squeeze/alpine/squeeze

« back to all changes in this revision

Viewing changes to pico/window.c

  • Committer: Bazaar Package Importer
  • Author(s): Asheesh Laroia
  • Date: 2007-02-17 13:17:42 UTC
  • Revision ID: james.westby@ubuntu.com-20070217131742-99x5c6cpg1pbkdhw
Tags: upstream-0.82+dfsg
ImportĀ upstreamĀ versionĀ 0.82+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#if     !defined(lint) && !defined(DOS)
 
2
static char rcsid[] = "$Id: window.c 113 2006-09-01 21:54:31Z hubert@u.washington.edu $";
 
3
#endif
 
4
/*
 
5
 * ========================================================================
 
6
 * Copyright 2006 University of Washington
 
7
 *
 
8
 * Licensed under the Apache License, Version 2.0 (the "License");
 
9
 * you may not use this file except in compliance with the License.
 
10
 * You may obtain a copy of the License at
 
11
 *
 
12
 *     http://www.apache.org/licenses/LICENSE-2.0
 
13
 *
 
14
 * ========================================================================
 
15
 */
 
16
 
 
17
/*
 
18
 * Window management. Some of the functions are internal, and some are
 
19
 * attached to keys that the user actually types.
 
20
 */
 
21
 
 
22
#include        "headers.h"
 
23
 
 
24
 
 
25
/*
 
26
 * Refresh the screen. With no argument, it just does the refresh. With an
 
27
 * argument it recenters "." in the current window. Bound to "C-L".
 
28
 */
 
29
int
 
30
pico_refresh(int f, int n)
 
31
{
 
32
    /*
 
33
     * since pine mode isn't using the traditional mode line, sgarbf isn't
 
34
     * enough.
 
35
     */
 
36
    if(Pmaster && curwp)
 
37
        curwp->w_flag |= WFMODE;
 
38
 
 
39
    if (f == FALSE)
 
40
        sgarbf = TRUE;
 
41
    else if(curwp){
 
42
        curwp->w_force = 0;             /* Center dot. */
 
43
        curwp->w_flag |= WFFORCE;
 
44
    }
 
45
 
 
46
    return (TRUE);
 
47
}