christos
|
3bca82ec33
|
PR/26785: Jess Thrysoee: libedit - H_NEXT and H_PREV shifts cursor on failure
|
2004-11-27 18:31:45 +00:00 |
christos
|
9b6268f92e
|
make sure that we round up to 1K.
|
2004-08-24 12:41:06 +00:00 |
christos
|
848a98512e
|
PR/26725: Sergey S. Kostyliov: Typo in libedit, possible buffer overflow in src/lib/libedit/history.c:history_save()
|
2004-08-20 12:54:05 +00:00 |
christos
|
6e782349a3
|
change allocation policy in el_push to allocate the string itself.
fix issues with strdup.
|
2003-10-18 23:48:42 +00:00 |
agc
|
eb7c1594f1
|
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
|
2003-08-07 16:42:00 +00:00 |
christos
|
839ca00b3c
|
From michael@moria.de:
- use __attribute__((__unused__)) in arguments where appropriate.
- some int -> size_t and char * to const char * conversions.
|
2003-06-19 15:55:05 +00:00 |
christos
|
f24857bf36
|
Add a uniquefier for the history function.
|
2003-01-21 18:40:23 +00:00 |
christos
|
e6ee03013b
|
don't crash in memory shortage conditions.
|
2002-10-27 20:24:28 +00:00 |
christos
|
4a964eaf87
|
write the vis(3) converted string into the file, not the original one.
Noted by Tim Robbins. Hi luke!
|
2002-10-13 17:15:53 +00:00 |
christos
|
0e0ac6b723
|
- 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.
|
2002-03-18 16:00:50 +00:00 |
jdolecek
|
e7e71e37c6
|
history_def_enter: fix off-by-one mistake in delete condition (the behaviour
to keep at least one entry on the history list is retained)
This fixes lib/9704 by Phil Nelson.
|
2001-09-29 17:52:10 +00:00 |
christos
|
e125f8f194
|
chmod the history file to 600 so that only the owner can read it.
[inspired by the openbsd fix to readline]
|
2001-03-20 00:08:31 +00:00 |
lukem
|
d30d584a91
|
convert to new style guide, which includes:
- ansi prototypes & features (such as stdargs)
- 8 space indents
|
2000-09-04 22:06:28 +00:00 |
lukem
|
f5e2e0bfea
|
history_def_set has a `const int' as a third arg, not an `int'.
picked up by the ultrix compiler, reported by simonb@ ...
|
2000-08-29 07:04:32 +00:00 |
simonb
|
1528b77539
|
More trailing white space.
|
1999-07-02 15:14:07 +00:00 |
mycroft
|
b59b039954
|
Add missing , in he_errlist[] initializer. Yay lint.
|
1999-03-06 00:17:25 +00:00 |
christos
|
84ee55f13e
|
Encode the history lines using strvis() before saving it. Fixes gdb history
problem with missing newlines.
|
1999-02-05 20:52:23 +00:00 |
christos
|
61df62e6a8
|
- missing error message from array could cause core dump
- delint
|
1998-12-12 19:52:51 +00:00 |
cgd
|
244d803bb3
|
per e-mail with christos: history_next_event() should return -1, not NULL,
in case of error, just like history_prev_event() does.
|
1998-12-03 17:51:16 +00:00 |
christos
|
eac8b13603
|
Add H_APPEND to simplify the interface.
|
1998-05-20 01:37:54 +00:00 |
christos
|
ccac6ba81c
|
Add a function to be able to set the cursor to a given event number.
|
1998-05-20 01:02:38 +00:00 |
christos
|
a7db9a7942
|
PR/4257: Jaromir Dolecek: history() has no generic error handling and isn't
reentrant. This changes the interface of the history function, so we need
a major number bump.
|
1997-10-14 15:05:49 +00:00 |
christos
|
54fac6850e
|
Fix compiler warnings.
|
1997-07-06 18:25:21 +00:00 |
christos
|
eb54427340
|
Portability fixes:
__const -> const
BADSIG -> SIG_ERR
int flags -> u_int flags
#if __STDC__ -> #ifdef __STDC__
|
1997-04-11 17:52:44 +00:00 |
mrg
|
9cd5492c02
|
- convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.
|
1997-01-23 14:01:45 +00:00 |
lukem
|
2543e3e651
|
RCSid police
editline first appeared in 4.4BSD not NetBSD1.0
|
1997-01-11 06:47:47 +00:00 |
christos
|
95b0e87b48
|
Added history load and save to file functions.
|
1995-10-15 19:42:05 +00:00 |
cgd
|
6dc2f1db52
|
libedit!
|
1994-05-06 06:01:42 +00:00 |