Joachim Nilsson
6021e54dbc
Bump version for v1.16.0 relese cycle
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-11-29 15:34:30 +01:00
Joachim Nilsson
1ace811722
rl_uninitialize(): also free old_search from previous i-search
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-11-29 15:32:59 +01:00
Claus Fischer
4b8333ad39
Remove duplicate unique history check
...
Signed-off-by: Claus Fischer <claus.fischer@clausfischer.com>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-11-29 15:03:01 +01:00
Joachim Nilsson
ed37cef412
Minor whitespace fixes/cleanup
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-11-29 15:01:22 +01:00
Joachim Nilsson
2a3b422137
Fix negative array index triggered by i-search
...
This is a fix to a bug reported by Claus Fischer. When doing a reversed
i-search on the history, clear_line() sets rl_point to a negative value,
which is later used by ceol(). The intention is to clear the whole line
for the new Search: prompt, but indexing an array with a negative value
is strongly discouraged.
To prevent this negative indexing from happening we check in ceol() for
rl_point < 0, but we quickly notice another side effect: one lingering
character at the end of line when returning from i-search. The problem
manifests itself more cleary when having a looooo000ooonong prompt.
The fix is to rub out the extra space, insert the i-search string, and
*then* call ceol() again.
Thanks to Claus for pointing this out!
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-11-29 14:53:14 +01:00
Claus Fischer
91937d970d
testit: Test new rl_uninitialize() and load/store history
...
Signed-off-by: Claus Fischer <claus.fischer@clausfischer.com>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-11-29 14:51:29 +01:00
Claus Fischer
317b43e488
rl_unintialize(): New function, free all memory after use
...
Free all allocated internal memory and reset variables so
rl_initialize() or readline() may be called again later.
Signed-off-by: Claus Fischer <claus.fischer@clausfischer.com>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-11-29 14:44:24 +01:00
Claus Fischer
ed87f37409
Initialize global variables and reset to NULL on free()
...
Signed-off-by: Claus Fischer <claus.fischer@clausfischer.com>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-11-29 14:41:50 +01:00
Joachim Nilsson
b30c3479f5
Minor, spellcheck
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-09-07 01:32:17 +02:00
Joachim Nilsson
119db55bf2
Bump version for v1.15.3 bug fix release
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-09-07 01:26:31 +02:00
Joachim Nilsson
2542f21ff1
Add support for building .deb packages
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-09-07 01:25:47 +02:00
Joachim Nilsson
36663d6acf
Run distcheck in release target, verifies distribution files
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-09-07 01:25:25 +02:00
Joachim Nilsson
866f25ce10
Update ChangeLog(s) for v1.15.3 bug fix release
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-09-07 01:25:01 +02:00
Joachim Nilsson
01f684ea19
debian/changelog: Add missing releases
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-09-07 01:24:38 +02:00
Joachim Nilsson
dd0c1dc2a4
debian/: Simplify rules file, greatly, add multi-arch support
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-09-07 01:22:46 +02:00
Joachim Nilsson
30e33b74fb
Remove old compat symlinks, keep new Markdown versions
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-09-07 01:22:31 +02:00
Joachim Nilsson
b8c6a5b1e2
configure: Refactor other enable/disable checks like --enable-termcap
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-03-30 00:36:21 +02:00
Joachim Nilsson
ee70c8339c
Followup to #7 : Check also for terminfo, requested by @rofl0r
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-03-30 00:35:13 +02:00
Joachim Nilsson
16c96eda10
Fix #7 : Fix configure --enable-termcap
...
Improper handling of AC_ARG_ENABLE() causes the configure script to
always enable CONFIG_USE_TERMCAP.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-03-29 22:06:56 +02:00
Joachim Nilsson
0d76f006b5
TODO: Ideas for how to use editline in an event loop
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-03-02 23:36:40 +01:00
Joachim Nilsson
4d93e85af7
debian/.gitignore: New file, ignore built files
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-01-21 19:37:13 +01:00
Joachim Nilsson
387a8b31ba
.gitignore: Update, add *.pc file
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2017-01-21 19:36:44 +01:00
Joachim Nilsson
2a3575495a
Add make release
target for simplified maintenance
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2016-06-06 20:09:47 +02:00
Joachim Nilsson
8aa36184e6
Update ChangeLog and bump version for v1.15.2 release
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2016-06-06 20:04:35 +02:00
Joachim Nilsson
0a8f2ef420
Add pkg-config libeditline.pc file
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2016-06-06 19:56:48 +02:00
Joachim Nilsson
8078ff69cc
Add ABI version info for libtool, start with 0.0.0
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2016-06-06 19:56:08 +02:00
Joachim Nilsson
6db7c7d440
Minor cleanup and simplification of build system
...
- Move 'foreign' declaration from Makefile.am's to configure script
- Move CFLAGS from configure script to src/Makefile.am
- Remove faltering license blurb at top of configure script, no need
for this since we a) do not care, b) falls under project license
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2016-06-01 07:26:16 +02:00
Joachim Nilsson
e02339c3ae
Do not assume -ltermcap, check for tgetent() instead
...
This is a followup patch for issue #8 . When the user elects
to enable Termcap checks for window resizing we need to check
what library on the system provides this functionality. Do
not assume -ltermcap, but instead check for tgetent() in all
possible libraries.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2016-06-01 07:26:09 +02:00
Joachim Nilsson
f66e8cc151
Merge pull request #10 from rofl0r/patch-1
...
README.md: libedit depends on libtermcap
2016-05-31 23:27:53 +02:00
rofl0r
782ce4a7a9
README.md: libedit depends on libtermcap
...
netbsd's libedit only relies on functions offered by the traditional
libtermcap (such as tgetent()), which are *usually* (i.e. on the
majority of modern UNIX systems) supplied by ncurses, but there
exist standalone versions as well which can be used instead.
2016-05-31 13:42:10 +01:00
Joachim Nilsson
059d97d7a9
Remove Emacs version-control handling
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2016-05-07 22:42:24 +02:00
Jakub Pawlowski
edc38768ff
Add tty_flush() to rl_forced_update_display()
...
Forcing update should flush, otherwise weird stuff happen when writing
to console asynchronously (cursor is moved, text is not displayed).
Signed-off-by: Jakub Pawlowski <jakubpawlo@gmail.com>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2016-01-28 19:46:53 +01:00
Joachim Nilsson
59a2db7217
Test build with both GCC and Clang (LLVM)
...
- Test build with both GCC and Clang (LLVM)
- Only run Coverity Scan on dev branch, not master
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2016-01-27 10:12:25 +01:00
Joachim Nilsson
ba005dc0d0
Update ChangeLog, give Jakub proper credit with correct last name
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2016-01-27 09:49:33 +01:00
Joachim Nilsson
a1002f6984
Update .gitignore with generated files
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2016-01-27 09:32:19 +01:00
Joachim Nilsson
7a0c292a82
Bump version for v1.15.2 release cycle
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2016-01-27 09:24:23 +01:00
Jakub Pawlo
91398ceb34
Prevent mangling of symbols when linking with C++
...
Signed-off-by: Jakub Pawlo <jakubpawlo@gmail.com>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2016-01-27 09:23:14 +01:00
Joachim Nilsson
3dbeaa0637
Fix link to version
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2015-11-16 21:21:44 +01:00
Joachim Nilsson
2f08585884
Fix heading
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2015-11-16 21:21:00 +01:00
Joachim Nilsson
8a40df481b
Update ChangeLog and bump version for v1.15.1 release.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2015-11-16 21:17:17 +01:00
Joachim Nilsson
8439f426fc
Fix examples FTBFS for --enable-termcap builds
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2015-10-27 19:50:01 +01:00
Joachim Nilsson
cbb5dd037e
Update origin section upon questions from Peter Rosin
...
Thank you Peter for reminding me to update this!
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2015-10-22 01:02:25 +02:00
Joachim Nilsson
7a9e467251
Don't force automake v1.11, require at least v1.11
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2015-09-25 15:10:46 +02:00
Joachim Nilsson
6ad3cc1df5
Bump version and update ChangeLog for v1.15.0 release.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2015-09-10 13:26:03 +02:00
Joachim Nilsson
7abfadd7e6
Attempt to work around slightly bogus Coverity warnings.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2015-09-10 13:06:39 +02:00
Joachim Nilsson
9fbad9dbff
Fix build problems after removal of generated files.
...
Restore custom INSTALL file, accidentally removed in 295f901
.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2015-09-10 12:44:19 +02:00
Joachim Nilsson
474b9a6548
Instruct Travis-CI to run autogen.sh before configure
...
After removal of autoconf & automake generated friends we must run
./autogen.sh before configre.
Also, use docker to speed up builds (we don't need root).
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2015-09-10 12:00:02 +02:00
Joachim Nilsson
9865d7fe9f
Update ChangeLog and fix Markdown syntax for links.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2015-09-10 11:18:00 +02:00
Joachim Nilsson
e35b8f2fd0
Rename CHANGELOG.md --> ChangeLog.md
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2015-09-10 11:09:37 +02:00
Joachim Nilsson
c10241745c
Fix invalid Markdown syntax in README, and minor improvements.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2015-09-10 11:07:14 +02:00