From owner-freebsd-bugs Fri May 12 17:30:02 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id RAA15130 for bugs-outgoing; Fri, 12 May 1995 17:30:02 -0700 Received: (from gnats@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id RAA15123 ; Fri, 12 May 1995 17:30:02 -0700 Date: Fri, 12 May 1995 17:30:02 -0700 Message-Id: <199505130030.RAA15123@freefall.cdrom.com> From: henrich@crh.cl.msu.edu Reply-To: henrich@crh.cl.msu.edu To: freebsd-bugs Subject: bin/398: VI broken? In-Reply-To: Your message of Fri, 12 May 1995 20:24:08 -0400 <199505130024.UAA21393@bsdprd1.ais.msu.edu> Sender: bugs-owner@FreeBSD.org Precedence: bulk >Number: 398 >Category: bin >Synopsis: VI doesnt do the correct thing >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs (FreeBSD bugs mailing list) >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 12 17:30:01 1995 >Originator: Charles Henrich >Organization: Michigan State University >Release: FreeBSD 2.1.0-Development i386 >Environment: remote xterm (vt102 mode) rloging into a freebsd box, with the term type set to vt100-am or vt100 >Description: When editing the following text (from man.c) if you place your cursor on the blank line between the int status and status =, then use the VI (o)pen line command, the status = line correctly drops one line, but the users cursor is then placed on the same line as the status =. CTRL-L refreshes to the correct location. Possibly a termcap bug? char ** add_dir_to_mpath_list (mp, p) char **mp; char *p; { int status; status = is_directory (p); if (status < 0) { fprintf (stderr, "Warning: couldn't stat file %s!\n", p); } else if (status == 0) { fprintf (stderr, "Warning: %s isn't a directory!\n", p); } else if (status == 1) { if (debug) fprintf (stderr, "adding %s to manpathlist\n", p); *mp++ = strdup (p); } return mp; } >How-To-Repeat: >Fix: >Audit-Trail: >Unformatted: