>From: chmr@edvz.tu-graz.ac.at (Christoph Robitschko)
authorRod Grimes <rgrimes@FreeBSD.org>
Fri, 24 Sep 1993 17:13:12 +0000 (17:13 +0000)
committerRod Grimes <rgrimes@FreeBSD.org>
Fri, 24 Sep 1993 17:13:12 +0000 (17:13 +0000)
Date: Fri, 24 Sep 1993 10:08:59 +0200 (MET DST)

According to Christoph Kukulies:
> I got surprised about vi's behaviour when I inadvertently typed
> ?<cr> (wanted to search backwards for something)
> and got:
> Script started on Thu Sep 23 23:37:59 1993
> $ vi
> ~
> ?
> argv[0]="mail"
> argv[1]="-s"
> argv[2]="Graceland"
> argv[3]="kuku"
> Error stuffing name "" into temp file
> $
>
> This gives under 0.1 vi something like: Eror: No previous expression
Moved #endif to fix this

I (Rod) fixed a compiler warning in  curses.c by adding a type cast
to a call to signal.

usr.bin/elvis/curses.c
usr.bin/elvis/move2.c

index 063b091..31302d3 100644 (file)
@@ -754,7 +754,7 @@ int getsize(signo)
 
 #ifdef SIGWINCH
        /* reset the signal vector */
 
 #ifdef SIGWINCH
        /* reset the signal vector */
-       signal(SIGWINCH, getsize);
+       signal(SIGWINCH, (void *)getsize);
 #endif
 
        /* get the window size, one way or another. */
 #endif
 
        /* get the window size, one way or another. */
index 6be627e..2c768cd 100644 (file)
@@ -267,11 +267,11 @@ MARK      m_bsrch(m, ptrn)
 
                /* compile the pattern */
                re = regcomp(ptrn);
 
                /* compile the pattern */
                re = regcomp(ptrn);
+#endif
                if (!re)
                {
                        return MARK_UNSET;
                }
                if (!re)
                {
                        return MARK_UNSET;
                }
-#endif
        }
        else if (!re)
        {
        }
        else if (!re)
        {