The NetBSD Project

CVS log for src/lib/libedit/vi.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libedit

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.62 / (download) - annotate - [select for diffs], Mon May 9 21:46:56 2016 UTC (7 weeks, 1 day ago) by christos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.61: +49 -49 lines
Diff to previous 1.61 (colored)

s/protected/libedit_private/g

Revision 1.61 / (download) - annotate - [select for diffs], Mon Apr 18 17:01:19 2016 UTC (2 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.60: +3 -2 lines
Diff to previous 1.60 (colored)

From Ingo Schwarze:
 * Replace fcns.c by a shorter and simpler func.h
   and include it only in the one file needing it, map.c.
 * Combine help.h and help.c into a simplified help.h
   and include it only in the one file needing it, map.c.
 * Check the very simple, static files editline.c, historyn.c, and
   tokenizern.c into CVS rather than needlessly generating them.
 * So we no longer autogenerate any C files.  :-)
 * Shorten and simplify makelist by deleting the options -n, -e, -bc,
   and -m; the latter was unused and useless in the first place.
 * Move the declaration of el_func_t from fcns.h to the header
   actually needing it, map.h.  Since that header is already
   included by el.h for unrelated reasons, that makes el_func_t
   just as globally available as before.
 * No longer include the simplified fcns.h into el.h,
   include it directly into the *.c files needing it.

Revision 1.60 / (download) - annotate - [select for diffs], Mon Apr 11 18:56:31 2016 UTC (2 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.59: +6 -6 lines
Diff to previous 1.59 (colored)

Get rid of private/public; keep protected (Ingo Schwarze)

Revision 1.59 / (download) - annotate - [select for diffs], Mon Apr 11 00:50:13 2016 UTC (2 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.58: +11 -11 lines
Diff to previous 1.58 (colored)

Char -> wchar_t from Ingo Schwarze.

Revision 1.58 / (download) - annotate - [select for diffs], Mon Apr 11 00:22:48 2016 UTC (2 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.57: +8 -8 lines
Diff to previous 1.57 (colored)

more macro WIDECHAR undoing from Ingo Schwarze.

Revision 1.57 / (download) - annotate - [select for diffs], Sat Apr 9 18:47:05 2016 UTC (2 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.56: +4 -4 lines
Diff to previous 1.56 (colored)

Change some 0's to NULL's from Pedro Giffuni

Revision 1.56 / (download) - annotate - [select for diffs], Sat Apr 9 18:43:17 2016 UTC (2 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.55: +12 -12 lines
Diff to previous 1.55 (colored)

More WIDECHAR elimination (Ingo Schwarze)

Revision 1.55 / (download) - annotate - [select for diffs], Wed Mar 2 19:24:20 2016 UTC (3 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.54: +4 -3 lines
Diff to previous 1.54 (colored)

PR/50880: David Binderman: Remove redundant code.
While here, fix all debugging formats.

Revision 1.54 / (download) - annotate - [select for diffs], Wed Feb 17 19:47:49 2016 UTC (4 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.53: +4 -4 lines
Diff to previous 1.53 (colored)

whitespace and header sorting changes (Ingo Schwarze). No functional changes.

Revision 1.53 / (download) - annotate - [select for diffs], Tue Feb 16 22:53:14 2016 UTC (4 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.52: +9 -7 lines
Diff to previous 1.52 (colored)

More header cleanups from Ingo Schwarze.

Revision 1.52 / (download) - annotate - [select for diffs], Tue Feb 16 19:08:41 2016 UTC (4 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.51: +5 -2 lines
Diff to previous 1.51 (colored)

more include file cleanup (Ingo Schwarze)

Revision 1.51 / (download) - annotate - [select for diffs], Tue Feb 16 15:53:48 2016 UTC (4 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.50: +2 -4 lines
Diff to previous 1.50 (colored)

From Ingo Scharze:
Let "el.h" include everything needed for struct editline,
and don't include that stuff multiple times.  That also improves
consistency, also avoids circular inclusions, and also makes it
easier to follow what is going on, even though not quite as nice.
But it seems like the best we can do...

Revision 1.50 / (download) - annotate - [select for diffs], Tue Feb 16 14:08:25 2016 UTC (4 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.49: +3 -2 lines
Diff to previous 1.49 (colored)

cleanup chartype.h includes (Ingo Schwarze)

Revision 1.49 / (download) - annotate - [select for diffs], Tue Feb 16 14:06:05 2016 UTC (4 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.48: +3 -2 lines
Diff to previous 1.48 (colored)

cleanup inclusion of histedit.h (Ingo Schwarze)

Revision 1.48 / (download) - annotate - [select for diffs], Sun Feb 14 14:49:34 2016 UTC (4 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.47: +54 -54 lines
Diff to previous 1.47 (colored)

From Ingo Schwarze:

As we have seen before, "histedit.h" can never get rid of including
the <wchar.h> header because using the data types defined there is
deeply ingrained in the public interfaces of libedit.

Now POSIX unconditionally requires that <wchar.h> defines the type
wint_t.  Consequently, it can be used unconditionally, no matter
whether WIDECHAR is active or not.  Consequently, the #define Int
is pointless.

Note that removing it is not gratuitious churn.  Auditing for
integer signedness problems is already hard when only fundamental
types like "int" and "unsigned" are involved.  It gets very hard
when types come into the picture that have platform-dependent
signedness, like "char" and "wint_t".  Adding yet another layer
on top, changing both the signedness and the width in a platform-
dependent way, makes auditing yet harder, which IMHO is really
dangerous.  Note that while removing the #define, i already found
one bug caused by this excessive complication - in the function
re_putc() in refresh.c.  If WIDECHAR was defined, it printed an
Int = wint_t value with %c.  Fortunately, that bug only affects
debugging, not production.  The fix is contained in the patch.

With WIDECHAR, this doesn't change anything.  For the case without
WIDECHAR, i checked that none of the places wants to store values
that might not fit in wint_t.

This only changes internal interfaces; public ones remain unchanged.

Revision 1.47 / (download) - annotate - [select for diffs], Wed Oct 21 21:45:30 2015 UTC (8 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.46: +3 -4 lines
Diff to previous 1.46 (colored)

Use the full buffer for the conversion; ideally we should be dynamically
allocating this. From Jilles Tjoelker

Revision 1.46 / (download) - annotate - [select for diffs], Mon Oct 19 00:36:27 2015 UTC (8 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.45: +5 -4 lines
Diff to previous 1.45 (colored)

make sure we have space for NUL and NUL terminate buffer array (Jilles Tjoelker)

Revision 1.43.6.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:17 2014 UTC (22 months, 1 week ago) by tls
Branch: tls-maxphys
Changes since 1.43: +6 -14 lines
Diff to previous 1.43 (colored) next main 1.44 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.43.16.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:51:57 2014 UTC (22 months, 2 weeks ago) by tls
Branch: tls-earlyentropy
Changes since 1.43: +6 -14 lines
Diff to previous 1.43 (colored) next main 1.44 (colored)

Rebase.

Revision 1.45 / (download) - annotate - [select for diffs], Wed Jun 18 18:12:28 2014 UTC (2 years ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.44: +6 -23 lines
Diff to previous 1.44 (colored)

Don't depend on weak aliases to define the vi "alias" expansion function,
provide an API instead to set it.

Revision 1.44 / (download) - annotate - [select for diffs], Wed Jun 18 13:03:08 2014 UTC (2 years ago) by christos
Branch: MAIN
Changes since 1.43: +15 -6 lines
Diff to previous 1.43 (colored)

accomodate FreeBSD's flavor of weak references.

Revision 1.41.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:27 2012 UTC (4 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.41: +16 -19 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

sync with head

Revision 1.43 / (download) - annotate - [select for diffs], Mon Jan 16 14:57:45 2012 UTC (4 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, agc-symver-base, agc-symver
Branch point for: tls-maxphys, tls-earlyentropy
Changes since 1.42: +15 -18 lines
Diff to previous 1.42 (colored)

PR/45843: Henning Petersen: Fix resource leak on error.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Nov 18 20:24:21 2011 UTC (4 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

Off by one in allocation could cause buffer overflow (Kamil Dudka)

Revision 1.41 / (download) - annotate - [select for diffs], Tue Oct 4 15:27:04 2011 UTC (4 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)


fixed warnings where wint_t is unsigned.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Aug 16 16:25:15 2011 UTC (4 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.39: +4 -4 lines
Diff to previous 1.39 (colored)

re-enable -Wconversion

Revision 1.39 / (download) - annotate - [select for diffs], Fri Jul 29 23:44:45 2011 UTC (4 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

pass -Wconversion

Revision 1.38 / (download) - annotate - [select for diffs], Fri Jul 29 20:58:07 2011 UTC (4 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.37: +14 -14 lines
Diff to previous 1.37 (colored)

- fix unused params
- unconditionalize vis.h

Revision 1.37 / (download) - annotate - [select for diffs], Fri Jul 29 15:16:33 2011 UTC (4 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.36: +58 -58 lines
Diff to previous 1.36 (colored)

KNF return (\1); -> return \1;

Revision 1.36 / (download) - annotate - [select for diffs], Thu Jul 28 20:50:55 2011 UTC (4 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.35: +4 -4 lines
Diff to previous 1.35 (colored)

kill ptr_t and ioctl_t, add  * sizeof(*foo) to all allocations.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Jul 28 00:45:14 2011 UTC (4 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.34: +5 -5 lines
Diff to previous 1.34 (colored)

term -> terminal

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Sat Mar 5 15:09:21 2011 UTC (5 years, 3 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.32: +6 -5 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

Sync with HEAD

Revision 1.34 / (download) - annotate - [select for diffs], Tue Feb 22 05:45:08 2011 UTC (5 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase
Changes since 1.33: +5 -15 lines
Diff to previous 1.33 (colored)

Introduce __weakref_visible to handle the different required visibility
for weak references. GCC 4.2+ and Clang require static, older GCC wants
extern. Change __weak_reference to include sym. This requires changes
the existing users to not reuse the name of the symbol, but avoids
further differences between GCC 4.1 and GCC 4.2+/clang.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Feb 17 16:44:48 2011 UTC (5 years, 4 months ago) by joerg
Branch: MAIN
Changes since 1.32: +13 -2 lines
Diff to previous 1.32 (colored)

Deal with changes in the weak_reference semantic in GCC 4.2 and later.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Oct 23 23:27:40 2010 UTC (5 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, bouyer-quota2-base
Branch point for: bouyer-quota2
Changes since 1.31: +6 -3 lines
Diff to previous 1.31 (colored)

fix fd leak found by Igor Zinovik

Revision 1.31 / (download) - annotate - [select for diffs], Wed Dec 30 22:37:40 2009 UTC (6 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.30: +112 -82 lines
Diff to previous 1.30 (colored)

Wide character support (UTF-8) from Johny Mattsson; currently disabled.

Revision 1.28.2.1 / (download) - annotate - [select for diffs], Wed May 13 19:18:29 2009 UTC (7 years, 1 month ago) by jym
Branch: jym-xensuspend
Changes since 1.28: +21 -19 lines
Diff to previous 1.28 (colored) next main 1.29 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.30 / (download) - annotate - [select for diffs], Sat Feb 21 23:31:56 2009 UTC (7 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.29: +5 -5 lines
Diff to previous 1.29 (colored)

more size_t stuff.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Feb 15 21:55:23 2009 UTC (7 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.28: +19 -17 lines
Diff to previous 1.28 (colored)

pass lint on _LP64.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Feb 6 13:14:37 2009 UTC (7 years, 4 months ago) by sketch
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

Portability fix.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Oct 22 07:48:13 2006 UTC (9 years, 8 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-devfs2-base, mjf-devfs2, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Changes since 1.26: +5 -4 lines
Diff to previous 1.26 (colored)

__weakref__ attribute can not be applied to anything when inside function
scope, so, move the extern of get_alias_text outside vi_alias().

fixes build problems with GCC 4.1-20061021.

Revision 1.26 / (download) - annotate - [select for diffs], Thu May 18 17:54:19 2006 UTC (10 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.25: +5 -5 lines
Diff to previous 1.25 (colored)

change __weak_extern to __weak_reference so that gcc4 works.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Mar 6 21:11:56 2006 UTC (10 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.24: +4 -5 lines
Diff to previous 1.24 (colored)

Print the actual eofc, instead of ^D\b\b.
Change internal character decoding to prevent buffer oveflows.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Aug 10 12:46:24 2005 UTC (10 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.23: +4 -5 lines
Diff to previous 1.23 (colored)

Don't save the el->el_line.cursor over a cv_insert call and use it later
because it might change. From Stefan Farfedeler.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Aug 9 16:40:12 2005 UTC (10 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.22: +6 -4 lines
Diff to previous 1.22 (colored)

Don't delete the current line in vi mode when typing 'yy'.
From Stefan Farfeleder.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Aug 8 14:05:37 2005 UTC (10 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

Spelling mistakes and comment errors (from FreeBSD via Stefan Farfeleder; many
thanks)

Revision 1.21 / (download) - annotate - [select for diffs], Mon Apr 25 01:06:03 2005 UTC (11 years, 2 months ago) by matt
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Terminate the arglist with a NULL instead of 0.  (Shuts up gcc4.x)

Revision 1.20 / (download) - annotate - [select for diffs], Fri Aug 13 12:10:39 2004 UTC (11 years, 10 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.19: +5 -11 lines
Diff to previous 1.19 (colored)

Delete-previous-char and delete-next-char without an argument are not supposed
to modify the yank buffer in Emacs.  Make it so.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Aug 7 16:44:35 2003 UTC (12 years, 10 months ago) by agc
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.18: +3 -7 lines
Diff to previous 1.18 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Jun 19 15:55:06 2003 UTC (13 years ago) by christos
Branch: MAIN
Changes since 1.17: +33 -33 lines
Diff to previous 1.17 (colored)

From michael@moria.de:
- use __attribute__((__unused__)) in arguments where appropriate.
- some int -> size_t and char * to const char * conversions.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jun 4 20:14:05 2003 UTC (13 years ago) by matt
Branch: MAIN
Changes since 1.16: +23 -11 lines
Diff to previous 1.16 (colored)

Only return CC_EOF if ^D (VEOF) was the only thing on the line.  Otherwise
beep and don't do anything else.  This mimics the behavor of ^D outside in
normal terminal mode.  (^D in vi scrolls forwards and as such isn't
appropriate to emulation)

Revision 1.16 / (download) - annotate - [select for diffs], Mon Mar 10 11:09:25 2003 UTC (13 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.15: +3 -6 lines
Diff to previous 1.15 (colored)

Put the __weak_extern() back inside vi_alias, but after the extern for
get_alias_text().

Revision 1.15 / (download) - annotate - [select for diffs], Mon Mar 10 09:55:10 2003 UTC (13 years, 3 months ago) by he
Branch: MAIN
Changes since 1.14: +4 -1 lines
Diff to previous 1.14 (colored)

Move the __weak_extern() (ifdef'ed) outside of the vi_alias()
function, so that this compiles again.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Mar 10 01:14:07 2003 UTC (13 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.13: +8 -3 lines
Diff to previous 1.13 (colored)

if no __weak_extern, don't even try to do vi_alias.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Mar 10 01:05:12 2003 UTC (13 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

fix uninitialized variable.
grr, I want gcc-3.3

Revision 1.12 / (download) - annotate - [select for diffs], Fri Nov 15 14:32:34 2002 UTC (13 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.11: +360 -128 lines
Diff to previous 1.11 (colored)

PR/18995: David Laight: libedit fixes for posix conformant sh

The posix 'sh' specification defines vi-mode editing quite tightly.
The netbsd libedit code (used by sh to do this) was missing several
features, there were also minor errors in others.

Compare netbsd sh to the definition available from:
http://www.opengroup.org/onlinepubs/007904975/utilities/sh.html
In particular the following were not supported:
	U - undo all changes to line
	| - goto column
	Y - yank to end of line
	y - yank
	# - comment out current line
	@ - take input from shell alias [1]
	G - goto numbered line in history buffer
	v - edit history line with vi
	_ - append word from last input line
	. - redo last command
Other minor changes have also been made.

[1] This needs the shell to define an appropriate routine to
return the text of the alias.  There is no requirement that
such a function exist.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Oct 31 02:01:47 2002 UTC (13 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.10: +50 -2 lines
Diff to previous 1.10 (colored)

support for % command [matching parens/brackets/braces] on vi modes.
From David Laight, thanks!

Revision 1.10 / (download) - annotate - [select for diffs], Sun Oct 27 21:41:50 2002 UTC (13 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.9: +74 -178 lines
Diff to previous 1.9 (colored)

vi mode and memory fixes from david laight.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Mar 18 16:01:01 2002 UTC (14 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.8: +3 -4 lines
Diff to previous 1.8 (colored)

- constify; passes all gcc and lint strict checks.
- add config.h [Jason Evans], to create a portable version of libedit that
  can be easily compiled on other OS's.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Sep 4 22:06:33 2000 UTC (15 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.7: +498 -550 lines
Diff to previous 1.7 (colored)

convert to new style guide, which includes:
- ansi prototypes & features (such as stdargs)
- 8 space indents

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jul 2 15:21:28 1999 UTC (17 years ago) by simonb
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.6: +66 -66 lines
Diff to previous 1.6 (colored)

More trailing white space.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Feb 5 20:53:50 1999 UTC (17 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored)

delint.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Dec 12 20:08:23 1998 UTC (17 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

delint

Revision 1.4 / (download) - annotate - [select for diffs], Tue Feb 3 19:12:40 1998 UTC (18 years, 4 months ago) by perry
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

remove obsolete register declarations

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jul 6 18:25:39 1997 UTC (18 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.2: +6 -4 lines
Diff to previous 1.2 (colored)

Fix compiler warnings.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jan 11 06:48:19 1997 UTC (19 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.1: +6 -0 lines
Diff to previous 1.1 (colored)

RCSid police
editline first appeared in 4.4BSD not NetBSD1.0

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Fri May 6 06:01:42 1994 UTC (22 years, 1 month ago) by cgd
Branch: CSRG
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1, netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0, lite-2, lite-1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

libedit!

Revision 1.1 / (download) - annotate - [select for diffs], Fri May 6 06:01:41 1994 UTC (22 years, 1 month ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>