Joachim Nilsson
dd1af360c3
Merge branch 'dtzWill-fix/narrow-terms'
2019-04-27 09:11:19 +02:00
Will Dietz
8660aef4b7
editline: fix behavior when tty is narrower than column width
...
Fixes crash when dividing by the number of columns,
which was computed as zero in this situation.
Instead, always have at least one "column" even if it wraps.
2019-04-26 13:30:15 -05:00
Joachim Nilsson
6a4d77ca69
Update ChangeLog with latest fixes
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-04-07 12:46:23 +02:00
Joachim Nilsson
0b554cf8c8
Bump version for v1.16.1 release cycle
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-04-07 12:46:01 +02:00
Joachim Nilsson
8f5a5da754
examples/fileman.c: Further code cleanup and simplification
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-12-31 22:51:39 +01:00
Joachim Nilsson
a237e39181
examples/fileman.c: Refactor and cleanup
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-12-31 22:49:28 +01:00
Joachim Nilsson
3cb74b6d87
examples/fileman.c: Remove unnecessary code
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-12-31 22:41:15 +01:00
Joachim Nilsson
5c8429dcee
examples/fileman.c: Deregister
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-12-31 22:39:20 +01:00
Joachim Nilsson
8566eb8384
examples/fileman.c: Reindent to project coding style
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-12-31 22:30:45 +01:00
Joachim Nilsson
8e34e4e417
Merge pull request #23 from LnL7/redisplay-clear
...
make Ctrl-L clear the screen instead of just starting a new line
2018-12-24 08:27:50 +01:00
Daiderd Jordan
a4b67d2268
make Ctrl-L clear the screen instead of just starting a new line
2018-12-23 20:49:25 +01:00
Joachim Nilsson
0b7142eb8e
examples: cli: Add password prompt (hidden input) example
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-11-17 11:50:26 +01:00
Joachim Nilsson
2137b9df9f
Revert "Merge pull request #21 from cogutvalera/issue_1171"
...
This reverts commit cddd8d8de0
, reversing
changes made to 4ec7d26a9d
.
2018-11-15 10:27:22 +01:00
Joachim Nilsson
66d8ae84e2
Revert "Coding style and const fixes to last PR"
...
This reverts commit fbb1f8800a
.
2018-11-15 10:26:03 +01:00
Joachim Nilsson
fbb1f8800a
Coding style and const fixes to last PR
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-10-24 08:28:34 +02:00
Joachim Nilsson
cddd8d8de0
Merge pull request #21 from cogutvalera/issue_1171
...
Hide secret information
2018-10-24 08:00:54 +02:00
Valera Cogut
1db83fe6c6
Fixed inconsistent indentation
2018-10-18 16:54:16 +03:00
Valera Cogut
3cd9894747
Added example for hiding secret information
2018-10-18 12:58:14 +03:00
Valera Cogut
4784fe2491
Hide secret information
2018-10-18 11:15:35 +03:00
Joachim Nilsson
4ec7d26a9d
Fix #20 : configure --disable-eof does not bite
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-09-21 07:17:19 +02:00
Joachim Nilsson
ebefa8b890
Refactor, simplify helper macro
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-09-21 07:12:24 +02:00
Joachim Nilsson
59fa265d91
Update ChangeLog and bump version for v1.16.0 release
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-09-16 10:10:03 +02:00
Joachim Nilsson
5f86c20c87
debian/control: Bump .so/ABI version
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-09-16 10:10:03 +02:00
Joachim Nilsson
237014f7d9
Bump ABI version
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-09-16 10:10:03 +02:00
Joachim Nilsson
bbd0621da8
debian/control: Set upstream author as maintainer
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-09-16 10:10:03 +02:00
Joachim Nilsson
1a5541256b
debian/source/format: Add missing file
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-09-16 10:10:03 +02:00
Joachim Nilsson
d4bef671b6
Minor, update .gitignore files
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-09-16 10:10:03 +02:00
Joachim Nilsson
054891f032
Add .deb package to official release target
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-09-16 10:10:03 +02:00
Joachim Nilsson
6fb3365893
docs/HACKING.md: Add release checklist and maintenance doc
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-09-16 09:35:27 +02:00
Joachim Nilsson
14b6dd37d6
Fix off-by-one in forward kill word
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-09-16 09:29:48 +02:00
Joachim Nilsson
89d2fefbc6
Skip leading whitespace when skipping or killing forwards
...
When the point is on whitespace between two words skipping forward, or
killing forward, should result in the new point being moved to the next
word:
foo bar fox gnu
^
=>
foo bar fox gnu
^
Before this patch the point moved to 'b'. After this patch the point
moves to the first letter of the next word, 'f'. Kill forward word now
properly kills 'bar' and moves to the first whitespace letter after
'bar'. Both are now behaving like FSF Readline.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-09-16 09:29:48 +02:00
Joachim Nilsson
ac522cd749
Fix potential memory leak, found by Coverity Scan
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-09-16 08:29:01 +02:00
Joachim Nilsson
9a16999f0e
Remove GNU Readline rl_complete() prototype, for now
...
We should add a configure option --enable-readline-compat, or sth, so
rl_complete2() (removed in this commit) becomes the new rl_complete(),
and the current rl_complete() becomes el_complete().
The current implementation of rl_complete2() was is incomplete and also
not working properly. To eliminate any confusion on the matter this
patch removes it. To restore functionality we should, at the very
least, merge with complete() and possibly also refactor rl_find_token()
to share code with the legacy el_find_word().
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-09-13 19:06:05 +02:00
Joachim Nilsson
e962b9582a
Update ChangeLog, mention new fileman.c from GNU Readline
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-09-12 17:12:40 +02:00
Joachim Nilsson
29b24dcf83
Clarify comment about future --enable-readline-compat interface
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-09-12 17:12:19 +02:00
Joachim Nilsson
097fde5267
Merge branch 'master' of github.com:troglobit/editline
2018-09-11 19:57:25 +02:00
Joachim Nilsson
05ed94047b
Update ChangeLog and fix description of bug #7 in earlier entry
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-09-11 19:56:05 +02:00
Joachim Nilsson
77d531f5b5
Refactor completion handling and add FSF Readline callbacks
...
Still a bit raw, but the basic building blocks are there, waiting to be
cleaned up and released.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-09-11 19:55:43 +02:00
Joachim Nilsson
405f091888
Merge pull request #19 from jmjatlanta/jmj_sigsev
...
Fix sementation violation when displaying options
2018-07-12 10:50:04 +02:00
jmjatlanta
d2418161ad
Fix sementation violation when displaying options
2018-07-11 18:01:48 -05:00
Joachim Nilsson
b2f1cfbbcc
fileman: New example, from libedit, and from GNU Readline originally
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-06-17 21:13:02 +02:00
Joachim Nilsson
76039b458b
Fix #17 : Fix off-by-one problem with strdup() replacement
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-06-14 21:59:18 +02:00
Joachim Nilsson
a5aaf51530
Minor, update project description
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-06-11 22:32:36 +02:00
Joachim Nilsson
bd5ae42b4b
Remove configure option --disable-default-complete
...
The filename completion handler fallback will now be enabled by default.
To disable it a new GNU Readline function pointer will be added.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-04-02 22:08:43 +02:00
Joachim Nilsson
41bbb304b1
Export internal el_next_hist() and el_prev_hist()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-04-01 16:10:10 +02:00
Joachim Nilsson
f40a2a6a2c
TODO: custom completion handlers verified in examples/cli.c
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-03-31 14:42:10 +02:00
Joachim Nilsson
534b3897b8
Minor update
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-03-31 01:23:41 +02:00
Joachim Nilsson
b4cf343342
Unify on docs/ directory, which is de facto standard on GitHub
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-03-31 01:21:12 +02:00
Joachim Nilsson
4c55280864
Update ChangeLog for upcoming v1.16.0 release
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-03-29 21:17:20 +02:00
Joachim Nilsson
78eabbde39
man: Minor update
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2018-03-24 19:35:16 +01:00