Commit Graph

32 Commits

Author SHA1 Message Date
Sheldon Hearn
32c41949c6 This commit was generated by cvs2svn to compensate for changes in r90019,
which included commits to RCS files with non-trunk default branches.
2002-01-31 13:28:37 +00:00
Sheldon Hearn
b4f6fcd394 Fix core dump in left-right screen scrolling for long lines.
The nvi maintainer expects this patch to be included in the upcoming
nvi-1.81.6 unless a better fix presents itself.

The MFC reminder below should be taken as a cue to MFC rev 1.1.1.2
of vs_relative.c as well.

PR:		bin/26869
Reported by:	Alex Semenyaka <alexs@snark.ratmir.ru>
Obtained from:	skimo@kotnet.org (via "Alexey V. Neyman" <alex.neyman@auriga.ru>)
MFC after:	1 month
2002-01-31 13:28:37 +00:00
Sheldon Hearn
55228c2a54 Import patch from vendor (taken from nvi-1.81.5) that fixes problematic
interaction between the leftright and number options.

PR:		bin/23912
Reported by:	"Stephen D. Spencer" <gladiatr@boneyard.lawrence.ks.us>
Obtained from:	skimo@kotnet.org
2002-01-07 14:26:12 +00:00
Sheldon Hearn
2228a60af1 This commit was generated by cvs2svn to compensate for changes in r89010,
which included commits to RCS files with non-trunk default branches.
2002-01-07 14:26:12 +00:00
Robert Watson
09333c6166 o nvi failed to correctly handle EINTR returned from tcsetattr(), exiting
instead of recovering, which happens in particular during a rapid series
  of SIGWINCH's.  This change forces nvi to loop on the call in the event
  that the call is interrupted.

Interestingly, I submitted this bug report in 1998, and a solution was
posted shortly thereafter by Matthias Buelow; it's been sitting in the
PR database ever since.

Note: this takes this file off the vendor branch.  If and when we find
a vendor for this code, the fix should be given back to them.

PR:		bin/8438
Submitted by:	Matthias Buelow <mkb@altair.mayn.de>
MFC after:	1 month
2001-11-09 02:23:05 +00:00
Jordan K. Hubbard
3f2d9117d4 Close buffer overflow noted in security advisory DSA-085.
Submitted by:	Koga Youichirou <y-koga@jp.FreeBSD.org>
Obtained from:	Debian
2001-10-26 08:25:32 +00:00
Dima Dorfman
489b9470ae Fix an underflow resulting from the assumption !O_ISSET(sp, O_LEFTRIGHT)
(ironically, the assumption is in a code block which is conditional on its
converse).  This isn't strictly the correct fix; it's more of a workaround
to prevent an infinite loop.  The correct fix (see
ports/editors/nvi-devel/files/patch-vi-relative r1.1) would take a file off
the vendor branch, but since the result for this version of nvi is
identical, this route was elected.

PR:		28687
Approved by:	-developers
2001-07-19 11:02:11 +00:00
David E. O'Brien
fbd7787b32 It is just stupid to have to do ``<ESC>!rm -f %'' to write a file you own.
So lets stop that nonsense and allow `w!' to do something useful.

Submitted by:	green
2001-07-09 04:11:33 +00:00
Maxim Sobolev
a4a7932740 Update/improve Ukrainian translation.
Submitted by:	Olexander Kunytsa <kunia@istc.kiev.ua> (author of translation)
2001-04-17 11:00:58 +00:00
Ben Smithurst
f0ff2d5f66 more(3) -> more(1), and add $FreeBSD$
PR:		24033
Submitted by:	Rich Morin <rdm@cfcl.com>
2001-01-03 18:32:10 +00:00
Ruslan Ermilov
b8d4dc6c68 Follow POLA and bind the <End> key to the `$' command.
This is committed to the vendor (BOSTIC) branch because
it was accepted (committed) by ``nvi'' maintainers:

On Fri, Dec 01, 2000 at 03:51:14PM +0100, Sven Verdoolaege wrote:
[...]
> RCS file: /b/CVSROOT/vi/cl/cl_bsd.c,v
> Working file: cl_bsd.c
> head: 8.32
> branch:
> locks: strict
> access list:
> symbolic names:
>         nvi1-81-1: 8.31
>         nvi1-81-0: 8.30
>         nvi1-80: 8.29.0.2
> keyword substitution: kv
> total revisions: 32;    selected revisions: 1
> description:
> ----------------------------
> revision 8.32
> date: 2000/12/01 13:56:17;  author: skimo;  state: Exp;  lines: +2 -1
> allow use of <End> key on AT-compatible keyboards (Ruslan Ermilov <ru@FreeBSD.org>)
> =============================================================================
>
> RCS file: /b/CVSROOT/vi/cl/cl_term.c,v
> Working file: cl_term.c
> head: 10.28
> branch:
> locks: strict
> access list:
> symbolic names:
>         nvi1-81-1: 10.27
>         nvi1-81-0: 10.23
>         nvi1-80: 10.23.0.2
> keyword substitution: kv
> total revisions: 47;    selected revisions: 1
> description:
> ----------------------------
> revision 10.28
> date: 2000/12/01 13:56:18;  author: skimo;  state: Exp;  lines: +2 -1
> allow use of <End> key on AT-compatible keyboards (Ruslan Ermilov <ru@FreeBSD.org>)
2000-12-01 15:36:10 +00:00
Ruslan Ermilov
d3bc44f91c This commit was generated by cvs2svn to compensate for changes in r69482,
which included commits to RCS files with non-trunk default branches.
2000-12-01 15:36:10 +00:00
Sheldon Hearn
52bb494f29 Catch up to perl-5.6.0. 2000-12-01 12:11:24 +00:00
Alexey Zelkin
2cdbd5eec4 Ukrainian message catalogs for vi.
Submitted by:	Kunytsa Oleksander <kunia@snark.ukma.kiev.ua>
2000-08-22 21:59:42 +00:00
Kris Kennaway
4f38e89827 10 X's in mkstemp(). 2000-01-10 09:17:46 +00:00
Jose M. Alcaide
f35e5d0ef0 Re-encode spanish messages using ISO-8859-1.
Patches also sent to bostic@bostic.com.

PR:		bin/5966
Submitted by:	Jose M. Alcaide <jose@we.lc.ehu.es>
1999-09-17 08:30:48 +00:00
Ruslan Ermilov
510108dbec Fix a coredump when commands in ~/.exrc prepended with addresses.
PR:		13000
1999-09-14 14:34:58 +00:00
Tim Vanderhoek
a173eb9a01 Fix potential buffer overflow when using gtags.
Submitted by:	Shigio Yamaguchi [3]shigio@wafu.netgate.net (gtags author)
PR:		bin/7607
1999-08-22 03:48:31 +00:00
Brian Somers
2e4e1ffe62 Set the close-on-exec flag when we lock the file we're editing.
This prevents any background sub-command executed from inheriting
the descriptor & lock (and making vi think that someone else is
editing the file when it re-edits).

Remembered from: An OpenBSD commit message from May '99
1999-08-06 08:34:42 +00:00
Bruce Evans
52f07e4286 Fixed printf format errors. 1999-04-03 06:58:32 +00:00
Peter Wemm
d992b805ae Make this work with the perl5 in the source tree - the API has "evolved"
and some code glitches had to be fixed.
1998-12-16 04:00:25 +00:00
Bruce Evans
c513aafea1 Fixed printf format errors. 1998-08-02 15:18:45 +00:00
Wolfram Schneider
eb00d48411 Polish message catalogs for vi.
Submitted by: abial@warman.org.pl
PR:         4522
1997-09-22 23:14:37 +00:00
Philippe Charnier
8e705c9c21 Typo: environmental variable -> environment variable. 1997-09-18 06:49:40 +00:00
Wolfram Schneider
f6b31571f6 spelling corrections.
PR: docs/4450
Submitted by: josh@quick.net
1997-09-13 16:01:53 +00:00
Jordan K. Hubbard
e56a720515 Enable GLOBAL tags support for nvi.
Submitted-By: Shigio Yamaguchi <shigio@wafu.netgate.net>
1997-04-18 23:36:52 +00:00
Joerg Wunsch
ac8fc3346d Everyone's favorite: finally bump vi's escapetime.
Closes bin/2510: vi escape keys over slow... (and i think yet another one)

Submitted by:	kargl@troutmask.apl.washington.edu (Steven G. Kargl)
1997-01-17 23:10:58 +00:00
Peter Wemm
51ce9de0e7 Bump default escapetime from 1 (ie: 100ms) to 3 (ie: 300ms). Hopefully
this will make it less likely to misinterpret arrow keys as seperate
keys when running over anything slower than a console.

This has been talked about for a while, I hope it's long enough but not
too long to be annoying.
1996-12-30 15:51:51 +00:00
Andrey A. Chernov
2f5f1c05db More fixes to Russian catalog
Should go to 2.2
(wrong number of % formatting found in old version)
1996-11-26 07:00:11 +00:00
Joerg Wunsch
7b9a6072fe Update the French message catalog to use ISO 8859-1 instead of IBM437
characters.

2.2 candidate.

Submitted by:	roberto@keltia.freenix.fr (Ollivier Robert)
1996-11-25 22:45:27 +00:00
Andrey A. Chernov
3e6f42c620 Restore 8bit stripped down in all lines
Without this change all messages looks very funny

2.2 candidate
1996-11-06 00:12:14 +00:00
Peter Wemm
b8ba871bd9 Import of nvi-1.79, minus a few bits that we dont need (eg: postscript
files, curses, db, regex etc that we already have).  The other glue will
follow shortly.

Obtained from: Keith Bostic <bostic@bostic.com>
1996-11-01 06:45:43 +00:00