Commit Graph

395 Commits

Author SHA1 Message Date
Terry Greeniaus
f53bebdbe9 Fix function prototypes.
This allows it to compile on macOS 15.3.2 using the default command-line
tools (clang-1600.0.26.6).
2025-04-05 23:17:20 -06:00
Joachim Wiberg
50bde4b5c3 Constify
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2024-12-08 21:41:48 +01:00
Joachim Wiberg
651c0bf38b examples: update prompt in fileman to show cwd
This shows off the rl_set_prompt() API to provide a more dynamic prompt.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2024-12-08 21:36:12 +01:00
Joachim Wiberg
d1ea173949 Fix and make sure to use rl_set_prompt() API
Fixes #51

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2024-12-08 21:34:56 +01:00
Joachim Wiberg
2c0313a3b5 Move forward wordwise should move to end of current word
For a similar feel like GNU Readline we should not skip to the next word
but stop at the end of the current.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2024-12-08 08:22:27 +01:00
Joachim Wiberg
41d80b5b14 Calling Ctrl-U should delete from cursor to beginning
Fixes #71

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2024-12-08 08:12:19 +01:00
Joachim Wiberg
c7437c8ce3 Fix doube free in completion
When falling back to rl_filename_completion_fuction as compentry
generator, the complete() function caused double free because the
generator did not return a strdup'ed entry but one of its own that
it freed when done.

Fixes #56

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2024-12-07 10:38:57 +01:00
Joachim Wiberg
22bdb0478c Minor, update maintainer last name
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2024-12-07 08:33:54 +01:00
Joachim Wiberg
fb4d7268de
Merge pull request #70 from 9999years/recognize-meta-arrows
Recognize `Meta+Left` and `Meta+Right` for word navigation
2024-12-07 08:32:55 +01:00
Rebecca Turner
4c4455353a
Add support for \e[1;3C and \e[1;3D 2024-09-09 09:44:44 -07:00
Rebecca Turner
d0f2a5bc23
Recognize Meta+Left and Meta+Right
I'm not sure exactly where to find canonical documentation for these
codes, but this seems to match what my terminal produces (macOS + iTerm2
+ Fish + Tmux).

It might also be nice to have some more support for editing the bindings
for these characters; sequences of more than one character are not
supported by `el_bind_key` and similar.
2024-09-08 19:32:28 -07:00
Joachim Wiberg
ac81ca6d4b
Merge pull request #69 from vikrrrr/missing-global
Add rl_attempted_completion_over global to header

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2024-09-07 11:02:46 +02:00
Arthur Michas
93d952291f
Add rl_attempted_completion_over global to header
Signed-off-by: Arthur Michas <vikr@protonmail.com>
2024-09-07 02:53:08 +02:00
Joachim Wiberg
caf4b3c0ce
Merge pull request #67 from Feoramund/respect-hist-size 2024-05-27 17:44:43 +02:00
Joachim Wiberg
6207edfe95
Merge pull request #68 from Feoramund/respect-default-prompt 2024-05-27 17:44:05 +02:00
Feoramund
e0f686506a
Respect default prompt
A prompt `"? "` is set in `rl_initialize`, but it is never seen, because
this line was replacing it with `NILSTR`.
2024-05-26 04:13:29 -04:00
Feoramund
aefda06a0c
Respect el_hist_size
It was previously subject to a sort of off-by-one error, because of the
addition of `NILSTR` in `el_prep`. This should allow a history size of 1
to function correctly now.
2024-05-26 03:38:04 -04:00
Joachim Wiberg
425584840c
Merge pull request #64 from trofi/autoconf-2.72-fix 2023-12-24 03:45:37 +01:00
Sergei Trofimovich
2b788be1c8 configure.ac: add second parameter quoting around the rest of AS_IF for consistency 2023-12-23 19:17:19 +00:00
Sergei Trofimovich
f444a316f5 configure.ac: fix autoconf-2.72 compatibility
`autoconf-2.72` slightly changed `AS_IF`/`AC_CHECL_LIB` definitions and
exposed the bug of missng quoting around the arguments:

    editline> ./configure: line 13944: syntax error near unexpected token `;;'
    editline> ./configure: line 13944: ` ;;'

The change adds quoting as suggested by https://savannah.gnu.org/support/index.php?110990
2023-12-23 19:13:52 +00:00
Joachim Wiberg
7633fbceee
Merge pull request #63 from nobody5050/patch-1
fix filename inaccuracy

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2023-01-29 06:47:11 +01:00
nobody5050
d903a940a5
fix filename inaccuracy 2023-01-28 12:44:44 -06:00
Joachim Wiberg
3ccc3a5120
Merge pull request #62 from al20878/master
Fix #61: gcc sign extension warnings

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2022-10-23 15:14:18 +02:00
Tony Lawrence
c50d4c34d8 Avoid using (char) in <ctype.h> macros (#61) 2022-10-22 20:02:23 -04:00
Tony Lawrence
70c80ac22e Mention autoconf.sh in build instructions (#61) 2022-10-22 20:02:16 -04:00
Joachim Wiberg
9fa05ba384 Add early notice on Windows not being supported
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2022-02-19 22:41:32 +01:00
Joachim Wiberg
9d4c6f7042 Drop orig. effort to support WIN32
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2022-02-19 22:38:55 +01:00
Joachim Wiberg
fc866f60d6
Merge pull request #57 from rcombs/patch-1
Include stdio.h from editline.h
2022-02-19 22:09:15 +01:00
rcombs
f7b58d3c0d
Include stdio.h from editline.h
Fixes `#include <editline.h>` without first including `<stdio.h>`, which previously errored at the missing typedef for `FILE`.
2022-02-17 17:59:40 -06:00
Joachim Wiberg
36e0921c71
Merge pull request #54 from tejing1/master
handle home and end keys in urxvt
2021-07-06 08:23:08 +02:00
Jeff Huffman
ec62e11a72
handle home and end keys in urxvt 2021-06-27 22:44:30 -04:00
Joachim Wiberg
0f4f5b0228
Merge pull request #53 from oxalica/fix/tmux-home-end
Fix Home (\e[1~) and End (\e[4~) in tmux
2021-05-29 15:22:18 +02:00
oxalica
265c1fb6a0
Fix Home (\e[1~) and End (\e[4~) in tmux 2021-05-29 14:30:05 +08:00
Joachim Wiberg
69c7e86967 Merge branch 'mlundh-bufferOverrunFix'
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2021-02-25 10:51:58 +01:00
Martin Lundh
3acd6a8b60 Fixed buffer overrun issue detected by address sanitizer. 2021-02-25 10:22:50 +01:00
Joachim Nilsson
62bba78258 Fix #41: add missing include in example
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-08-02 02:15:37 +02:00
Joachim Nilsson
63b94d2089 configure: Add --enable-examples option to build examples/
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-06-08 18:47:17 +02:00
Joachim Nilsson
2ebe9058a1
Merge pull request #40 from gh-fork-dump/master
POSIX recommends <sys/select.h> for select()
2020-06-08 18:43:27 +02:00
Stephen Gregoratto
d4b25ca85e include <sys/select.h> in excallback
Fixes an build issue when cross-compiling for SerenityOS[1]

[1] https://github.com/SerenityOS/serenity
2020-06-09 00:21:11 +10:00
Joachim Nilsson
ecabef273e debian: Upload to stable
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-02-23 19:07:45 +01:00
Joachim Nilsson
751c8ac7d1 Check for release tag before calling distcheck
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-02-23 18:46:59 +01:00
Joachim Nilsson
70d190340a Update changelogs and bump version for v1.17.1 release
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-02-23 18:46:48 +01:00
Joachim Nilsson
db318fd765 Drop duplicate package: rule
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-02-23 18:43:52 +01:00
Joachim Nilsson
d2fa0e4c6e Put auxillary files generated by autotools in aux/
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-02-23 18:43:52 +01:00
Joachim Nilsson
3e40e24e11 Reintroduce .tar.gz for distribution archives
For systems that don't have xz in the base install.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-02-23 18:43:52 +01:00
Joachim Nilsson
322055b89a debian: Ship upstream ChangeLog in .deb
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-02-23 18:43:52 +01:00
Joachim Nilsson
e1981428e7 debian: Add hardening, recommended by lintian
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-02-23 18:43:52 +01:00
Joachim Nilsson
d65245abbd debian: .so symlinks should be in -dev package, found by lintian
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-02-23 18:43:52 +01:00
Joachim Nilsson
45c9b94e11 debian: Update to Standards-Version 4.3.0 and fix shlib deps
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-02-23 18:43:52 +01:00
Joachim Nilsson
bfcf222bdc debian: Add symbols file, found by lintian
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-02-23 18:43:52 +01:00