wiz
3f9984fc90
`existent', not `existant'
2001-06-19 13:42:07 +00:00
christos
93819542b3
PR/12963:Jason Waterman: Fix signed cast problems.
2001-05-17 01:02:17 +00:00
enami
e58d00a406
Use relative path for symlink target so that it won't point outside of tree.
2001-05-16 07:09:26 +00:00
jdolecek
049f74e997
Back off previous and do differently:
...
Ensure that the <readline/history.h> link to <readline/readline.h> is
installed too for 'make includes'. Also, avoid creating obj dir.
This is finally real fix for lib/12929.
XXX Is this right?
2001-05-14 18:39:14 +00:00
jdolecek
6fc3f969bf
Use <bsd.inc.mk>, instead of <bsd.prog.mk>, so that the readline.h header
...
is installed during the 'make includes'.
Fixes lib/12929 by Martin Husemann.
2001-05-14 07:41:30 +00:00
lukem
5e45b51a6b
knf ch_enlargebufs(), to be *consistent* with the rest of this file...
2001-04-13 01:04:19 +00:00
lukem
4241f48b35
rename 3 arg ELRE_DEBUG to ELRE_ASSERT, add 2 arg ELRE_DEBUG, and change all
...
occurences of ELRE_DEBUG(foo,bar,) -> ELRE_DEBUG(foo,bar). some compilers
(e.g, gcc on darwin) bitch about the former (`not enough args').
2001-04-13 00:53:11 +00:00
wiz
caeeeac59d
End sentence with a dot.
2001-04-02 18:29:49 +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
jdolecek
86ebf640b0
sprinkle couple const
2001-01-23 15:55:30 +00:00
jdolecek
d64e200968
term_rebuffer_display(): set el->el_term.t_size.v to terminals
...
height, not a magic value, so that e.g. el_display[] and el_vdisplay[]
are not bigger than needed.
Discussed with Christos Zoulas.
2001-01-10 22:42:56 +00:00
jdolecek
3b81461031
fix partial completion - we failed to refresh screen in that case
2001-01-10 08:10:45 +00:00
jdolecek
00ff7cacf5
Enlarge editline buffers as needed to support arbitrary length lines.
...
This also addresses lib/9712 by Phil Nelson.
2001-01-10 07:45:41 +00:00
jdolecek
c8093bd336
term_beep(): use ordinary bell, don't attempt to use visual bell - if user wants
...
visual instead of ordinary bell, they should set their environment
appropriately
2001-01-09 19:43:15 +00:00
jdolecek
7be4ef2ff0
make array of functions and help array const
2001-01-09 19:22:31 +00:00
jdolecek
417c215317
make constant arrays a const
2001-01-09 17:31:04 +00:00
jdolecek
a76c617ce5
make constant arrays a const
2001-01-09 17:22:09 +00:00
jdolecek
fa6e217baf
el_line_t: make 'limit' const
2001-01-06 14:44:50 +00:00
christos
304ebe4875
depoison the pure editline code from readline compatibility hacks.
2001-01-05 22:45:30 +00:00
jdolecek
74c6c9c204
Standard location of readline headers is /usr/include/readline/, so install
...
them there.
readline.h of libedit had to move to subdirectory 'readline', due to the way
BSD makefiles work; this is better than potentially fragile Makefile hacks
2001-01-05 21:15:49 +00:00
christos
2f3389ce5e
consistently check for allocation failures and return -1, if we could not
...
get more memory.
2001-01-04 15:56:31 +00:00
christos
ab7e5eaeb3
fix lint problems.
2001-01-04 15:55:53 +00:00
christos
ed19c5fdb0
fix dumb typo in signal setup [from OpenBSD]
...
return -1 if alloc fails.
2001-01-04 15:55:03 +00:00
jdolecek
a8b4a741c5
bump libedit minor - addition of rl_special_prefixes and rl_completion_append_character
2001-01-01 15:54:07 +00:00
jdolecek
a85f9ca211
Add support for rl_completion_append_character and rl_special_prefixes.
...
This addresses lib/10513 by Giles Lean. Tested with PostgreSQL 7.0.2 psql.
2001-01-01 15:52:25 +00:00
jdolecek
939ac12578
history_tokenize(): fix one off-by-one bug
...
rl_complete_internal(): only replace the completed string with common part
of possible matches if there is a possible completion
2001-01-01 11:03:16 +00:00
jdolecek
26ffe99b32
rl_display_match_list():
...
* pad entries shorter than 'max' by spaces correctly
* fix off-by-one error which caused extra newline to be printed
if the list fit exactly to a screen
* fix typo in _rl_qsort_string_compare, which caused the list to not
be sorted after all
2000-12-31 09:50:32 +00:00
jdolecek
c860130fa0
term_beep(): if terminal supports both visual and ordinary bell, 'ring' both
2000-12-30 22:46:05 +00:00
jdolecek
2c10cd6472
bump libedit minor - added some public stuff for readline emulation
2000-12-23 22:07:16 +00:00
jdolecek
4acffb6417
completion_matches(): fix a off-by-one bug, fix variable name typo
...
implement displaying of possible completions, add hook to display the list
on second rl_complete() invocation in row (typically, double <TAB>)
This addresses the completion part of lib/11581 by Richard Earnshaw.
2000-12-23 22:02:20 +00:00
jmc
50b6095c16
Alloc the keys structure with A_K_NKEYS as the multiplier rather than a
...
hardcoded value of 4.
A_K_NKEYS is currently 6 and this mismatch was stomping memory when
initializing the keys. (specifically gdb lost the exec file name if it was
a long path name).
2000-11-28 22:37:51 +00:00
christos
ff59a2fadd
- add support for home and end keys.
...
- improve debugging support
2000-11-11 22:18:57 +00:00
lukem
cff6006e56
improve description of line syntax
2000-11-08 00:09:38 +00:00
sommerfeld
acf589519a
format string audit (silence warnings, save space)
2000-10-04 16:21:39 +00:00
lukem
6592086aee
- generate ansi prototypes instead of using __P(). noted by christos
...
- fix a couple of comments
2000-09-04 23:45:18 +00:00
lukem
e4b166ade0
convert to new style guide
2000-09-04 23:36:41 +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
mrg
7f59d8e891
use .tmp temporaries for generated files, to avoid having failed generated
...
output being used.
2000-08-15 12:01:40 +00:00
chuck
c23199d5e1
make xxgdb and a gdb linked with libedit's readline emulation work
...
properly together. xxgdb communicates with a gdb running on a pty
that it sets to -echo,-onlcr prior to forking the gdb process.
GNU readline preserves the -echo setting while libedit was undoing it
(setting the tty to a sane state and totally confusing xxgdb's parser).
this diff simply disables libedit if both readline emulation and
"stty -echo" are used/set. that is enough to make xxgdb work once
again, but (XXX) this is not how GNU readline handles stty -echo (it
does not echo anything, but editing commands like ^A,^K, etc.
still work), so the readline emulation isn't perfect.
change reviewed by christos.
2000-08-02 03:36:39 +00:00
sommerfeld
01d7e8693f
Only look in home directory for .editrc. (Discussed with Christos.)
2000-06-28 20:37:44 +00:00
lukem
78dc0c22fa
* add -m option to makelist, which generates an mdoc table with the key
...
bindings and their descriptions
* manually add the output of 'sh ./makelist -m vi.c ed.c common.c' to
a new section in editrc(5) called `EDITOR COMMANDS'
2000-06-21 03:21:28 +00:00
lukem
fd194fea27
use strtol() (instead of atoi()) for sane error detection
2000-06-02 13:37:12 +00:00
christos
cd8eacbb27
don't dump core on empty files.
2000-05-15 12:15:38 +00:00
soren
89c5a767f8
Fix doubled 'the's.
2000-03-13 22:55:05 +00:00
jdolecek
371967cec8
Fix _rl_compat_sub() to really honour 'globally' flag instead
...
of making the substitution always globally - affects
_history_expand_command() and in turn history_expand()
All praise lint :)
2000-03-10 13:06:43 +00:00
jdolecek
833166a288
readline(): don't dereference NULL pointer if prompt is NULL
...
history_tokenize(): avoid stepping too far if backslash is last character
on the passed string
update some comments
This makes gdb \ escaping work reliably and fixes lib/9511 by Assar Westerlund.
2000-03-10 12:55:15 +00:00
jdolecek
1f0ecc5ce4
include <stdlib.h> to get definition of malloc() and free(), so it's
...
possible to compile this file separately when debugging
2000-03-10 12:25:47 +00:00
chopps
fe7be4eb7b
el_insertstr takes a "const char *" not "char *" now as it doesn't modify
...
the argument.
2000-02-28 17:41:04 +00:00
mycroft
05fc321ebf
Fix refresh glitches when using auto-margin.
2000-02-19 09:08:16 +00:00