[comp.unix.questions] Vi bug

leo@philmds.UUCP (Leo de Wit) (04/12/89)

Maybe someone has been bitten by this one before, but anyway, here it
goes (reproducable at least both on Ultrix 2.x and SUNOS 3.5):

Create a file with at least one line that wraps (depending on your
terminal / window, probably a line of over 80 chars).

Now type '/' (search) followed by windowsize+1 dots (so probably 81).

Surprise! You probably get a corrupted display (even ^L won't help). By
pressing 'n' a few times I managed to get an internal vi error (it goes
back to ex mode). If it matters: my wrapmargin is set to 0.

If you'd be interested why one might want to use such a search pattern:
it was for searching long lines 8-).

	 Leo.

mike@nixba.UUCP (Mike Lyons) (04/14/89)

In article <1001@philmds.UUCP>, leo@philmds.UUCP (Leo de Wit) writes:
> Maybe someone has been bitten by this one before, but anyway, here it
> goes (reproducable at least both on Ultrix 2.x and SUNOS 3.5):
> 
I couldn't reproduce this on a Nixdorf TARGON/31 (SYSV.3)

Michael D. Lyons 		phone: +49 911 6415 609
Nixdorf Computer AG 		fax:   +49 911 6415 105
D-8500 Nuernberg 60 		e-mail: mike@nixba.uucp
Federal Republic of Germany

denny@mcmi.UUCP (Denny Page) (04/17/89)

leo@philmds.UUCP (Leo de Wit) writes:
>Surprise! You probably get a corrupted display (even ^L won't help).

I have duplicated this on a 3B2/600 running 3.1.1, which means that
it's probably in most sysV systems.

Note that I had to hit ctl-L before it lost it's cookies.
-- 
Someday never comes

greim@sbsvax.UUCP (Michael Greim) (04/17/89)

In article <1001@philmds.UUCP>, leo@philmds.UUCP (Leo de Wit) writes:
< Maybe someone has been bitten by this one before, but anyway, here it
< goes (reproducable at least both on Ultrix 2.x and SUNOS 3.5):
< 
< Create a file with at least one line that wraps (depending on your
< terminal / window, probably a line of over 80 chars).
< 
< Now type '/' (search) followed by windowsize+1 dots (so probably 81).
< 
< Surprise! You probably get a corrupted display (even ^L won't help). By
< pressing 'n' a few times I managed to get an internal vi error (it goes
< back to ex mode). If it matters: my wrapmargin is set to 0.
< 
[...]
< 	 Leo.

It is a bug. I had it on 4.3BSD, SUN OS and Ultrix.
I will try to find the bug. As I do this in my sparetime it may take some
days. It may also be one of those bugs, for which you must rewrite large
parts of vi.
Watch this space.

	-mg
-- 
email : greim@sbsvax.informatik.uni-saarland.dbp.de
  (some mailers might not like this. Then use greim@sbsvax.uucp)
  or  : ...!uunet!unido!sbsvax!greim
# include <disclaimers/std.h>