vs_msg.c
Source contains an unconditional loopC declares a character or byte buffer
SHA-25649d1bbc80c73a8ca6958828a60422883245cbba602fbec7b75e44b8da76ee7ba
MaleculeO(Er)H(Db₂)
Evidence
1/*-
2 * Copyright (c) 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 1992, 1993, 199 …
5:19… All rights reserved.
6 *
7 * See the LICENSE file for redistribution information.
8 */
9
10#include "config.h"
11
12#include <sys/types.h>
13#include <sys/queue.h>
14#include <sys/time.h>
15
16#include <bitstring.h>
17#include <ctype.h>
18#include <stdio.h>
19#include <stdlib.h>
20#include <string.h>
21#include <unistd.h>
22
23#include "../common/common.h"
24#include "vi.h"
25
26typedef enum {
27 SCROLL_W, /* User wait. */
28 SCROLL_W_EX, /* User wait, or enter : to con …
44:3… Display, update or clear a busy message.
45 *
46 * This routine is the default editor interface for vi busy messages. It
47 * implements a standard stra …
55:28… *msg, busy_t btype)
56{
57 GS *gp;
58 VI_PRIVATE *vip;
59 static const char flagc[] = "|/-\\";
60 struct timespec ts, ts_diff;
61 const struct timespec ts_min = { 0, 125000000 };
62 size_t len, notused;
63 const char * …
581:62… reen
582 * image itself is wrong, so redraw everything.
583 */
584 if (TAILQ_NEXT(sp, q) != NULL)
585 F_SET(sp, SC_SCR_REDRAW);
586
587 /* If ex changed the underlying file, the map itself is wrong. */
588 if (F_ISSET(vi …