Commit Graph

362 Commits

Author SHA1 Message Date
freza 37b5672028 s/el->errfile/el->el_errfile/g in debug code, fixes MKDEBUGLIB build. 2006-11-25 17:54:38 +00:00
christos 3bf701820f bump minor. 2006-11-24 00:03:06 +00:00
christos 6b8a793080 - Add more readline functions, enough for gdb-6.5
- Make el_get varyadic, and implement EL_GETTC.
- XXX: the EL_SETTC api will change in the future.
2006-11-24 00:01:17 +00:00
christos 72301cb079 don't use alloca with ssp. 2006-11-09 16:58:38 +00:00
mrg d257e1e9bd __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.
2006-10-22 07:48:13 +00:00
christos d9590bcae9 Fix memory leak found by valgrind (Julien Torres) 2006-09-28 13:52:51 +00:00
rpaulo 1399def216 Rename TEST/test.c to avoid problems when doing a cleandir on case-insensitive
file systems.
ok'ed christos.
2006-08-31 20:20:38 +00:00
christos f1fff5b02e Change to a 3 clause copyright after permission of the holders. 2006-08-21 12:45:30 +00:00
christos 213f1e2476 PR/34062: Tanaka Akira: rl_deprep_term_function is NULL in libedit.
Default to rl_deprep_terminal as suggested; do the same for
rl_prep_term_function
2006-07-23 20:21:45 +00:00
christos 96473fa808 change __weak_extern to __weak_reference so that gcc4 works. 2006-05-18 17:54:19 +00:00
christos 5bba7270fa fix debugging printf format. 2006-04-09 01:36:51 +00:00
rtr 596eb336c9 remove if/free block checking known condition
coverity 2762 / run 11
2006-03-25 13:00:11 +00:00
christos 9363fb8b44 move declaration to header file. 2006-03-23 20:22:51 +00:00
christos 4baec30349 Coverity CID 2743: Not really a memory leak, but make it obvious that we
always free tmp.
2006-03-21 17:52:50 +00:00
christos ec39c1a649 Fix compilation. 2006-03-18 19:23:14 +00:00
christos 5900226fad Lint comment. 2006-03-18 19:22:59 +00:00
christos a46f31170d Coverity CID 1668: Plug memory leak. 2006-03-18 09:31:36 +00:00
christos c66ab9a1d0 Coverity CID 1666: Plug memory leak. 2006-03-18 09:28:23 +00:00
christos c5f39d86c2 Coverity CID 1667: Plug memory leak 2006-03-18 09:19:02 +00:00
christos 53c1263c37 Coverity CID 1662: Memory leak. 2006-03-18 09:15:57 +00:00
christos 87113ce74b Coverity CID 597: remove dead code. 2006-03-18 09:09:41 +00:00
christos 78f7dbe212 Coverity CID 1216: Prevent negative index use. 2006-03-18 09:07:05 +00:00
christos 62bb88223c Coverity CID 806: Prevent NULL deref 2006-03-18 09:02:08 +00:00
christos 230c3d4ed6 Print the actual eofc, instead of ^D\b\b.
Change internal character decoding to prevent buffer oveflows.
2006-03-06 21:11:56 +00:00
christos 0fd1bd6295 use the tty chars for reprint and eof instead of hard-coded ^R and ^D 2006-03-06 21:11:03 +00:00
christos 10f8fe2052 PR/32817: Magnus Svensson: write_history and read_history returncode is not
readline compatible.
2006-02-13 14:12:04 +00:00
christos fd2c82a86e Partial rl_getc_function support from Jess Thrysoee. 2006-02-12 16:15:07 +00:00
christos fff4889f5c Refresh bug reported by Julien Torres:
going from:
    activate -verbose
to:
    reset -activation
results in:
    reset -activationverbose"
instead of:
    reset -activation

This is because we choose to insert "reset -" before the current line,
and the delete "e -" and insert "ion" in the appropriate place. The
cleareol code did not handle this case properly; we now cleareol to
the maximum number of characters of the first difference, the second
difference and the difference in line length.
2005-11-09 22:11:10 +00:00
christos 41a71d9929 change tr '[a-z]' '[A-Z]' to tr '[:lower:]' '[:upper:]' so that POSIX systems
work properly regardless of environment variable settings.
2005-10-22 16:45:03 +00:00
wiz 59a1fe13eb Add el_get to SYNOPSIS. From jmc@openbsd. 2005-10-12 09:29:43 +00:00
wiz 416b7d49ec Fix double if (from Alexey E. Suslikov via jmc@openbsd).
While here, re-word both H_[GS]ETUNIQUE descriptions so they make
more sense. Bump date.
2005-09-09 22:32:56 +00:00
christos af079a3097 PR/31012: Barry Naujok: libedit el_get with EL_EDITOR op does not work
Fixed as suggested.
2005-08-19 04:21:47 +00:00
christos 55ca57f0a2 Don't save the el->el_line.cursor over a cv_insert call and use it later
because it might change. From Stefan Farfedeler.
2005-08-10 12:46:24 +00:00
christos fda9b4f722 Don't delete the current line in vi mode when typing 'yy'.
From Stefan Farfeleder.
2005-08-09 16:40:12 +00:00
christos b779ac8673 Fix two more help iterators. Thanks Stefan Farfeleder! 2005-08-09 13:58:44 +00:00
christos 2ecb0fb73d Spelling mistakes and comment errors (from FreeBSD via Stefan Farfeleder; many
thanks)
2005-08-08 14:05:37 +00:00
christos d8f117745d Don't add an extra { NULL, 0, NULL } element to the help array. Instead keep
it always the same size as the function array for consistency. Reported in
FreeBSD PR 82381, but fixed differently.
2005-08-08 14:04:49 +00:00
christos 76b5907b5f The previous commit removed too much and forgot to reset the history event
number. From Kouichirou Hiratsuka, many thanks!
2005-08-08 01:41:30 +00:00
christos 262f96a2f6 Fix reversed test; from Gerry Swislow 2005-08-03 13:41:38 +00:00
christos 68d7e34555 On a fatal error, we want to stop processing the macro buffers. 2005-08-02 12:11:14 +00:00
tron 4e72290930 Add missing second argument to another call of ch_reset(). 2005-08-02 10:20:33 +00:00
christos 0895008a17 Don't reset the macro strings each time we enter el_gets(), otherwise
el_push() is unusable programmatically.
2005-08-01 23:00:15 +00:00
christos ee399edc73 Don't forget to initialize h_del; from Julien Torres. 2005-08-01 14:34:06 +00:00
wiz 6220c813a6 Drop trailing whitespace. 2005-07-14 15:02:37 +00:00
christos 45542456a5 PR/30747: David N. Williams: libedit is missing remove_history()
Added, please test.
2005-07-14 15:00:58 +00:00
christos 32bff6afc2 Fix memory leaks found by valgrind. From Julien Torres 2005-07-06 21:13:02 +00:00
christos 54e7bf907a make this useable from c++. 2005-06-12 06:58:21 +00:00
christos 19c38590ee PR/30500: Paul Shupak: Inconsistent definition of tilde_expand().
Provide a layer of indirection between the readline compatibility functions
and our internal implementation, so that we have the freedom to change the
function signature.
2005-06-11 18:18:59 +00:00
christos 3cfbfdb2ef Bug reported from Martin Dietze:
The place to change the completion_append_character is
    usually somewhere in the `rl_completion_entry_function'
    callback which is where one usually can distinguish between
    file- or dir-like entries to append a slash for dirs etc.

    This does no longer work since `fn_complete()' takes the
    `append_character' as argument before the callback is executed,
    so that changes to the variable `rl_completion_append_character'
    have in fact no effect for the current completion.

Fix by adding a function that returns the rl_completion_append_character,
when it gets passed in a filename in readline emulation.
2005-06-10 20:21:00 +00:00
christos 0320b64715 tilde expand should take a const argument. 2005-06-10 20:18:11 +00:00