| #
da238866 |
| 05-Dec-2024 |
christos <christos@NetBSD.org> |
Don't eat 0 width characters, print them.
|
| #
8991773d |
| 30-Jun-2024 |
christos <christos@NetBSD.org> |
Handle the case where the cursor is on the first character. set -o vi x ESC ~ (Robert Morris) https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279545
|
| #
e2b95d2c |
| 09-Sep-2021 |
christos <christos@NetBSD.org> |
Add casts to appease conversions between wchar_t and wint_t
|
| #
1148c426 |
| 30-Mar-2020 |
ryo <ryo@NetBSD.org> |
fix build error with SDEBUG, MAP_DEBUG, DEBUG_REFRESH
|
| #
13b962ac |
| 04-Jan-2019 |
uwe <uwe@NetBSD.org> |
Fix mis-applied change in previous. Don't increment r_oldcv twice. PR lib/53803
|
| #
b15150dc |
| 23-Oct-2018 |
christos <christos@NetBSD.org> |
Apply revisions 1.21, 1.22 from OpenBSD:
In re_fastputc(), set lastline to the new line, not the previous line so it gets initialized properly. Fixes a crash in bc with MALLOC_OPTIONS=UJ. OK deraa
Apply revisions 1.21, 1.22 from OpenBSD:
In re_fastputc(), set lastline to the new line, not the previous line so it gets initialized properly. Fixes a crash in bc with MALLOC_OPTIONS=UJ. OK deraadt@, committing on behalf of yasuoka@
Initialize "old" screen buffer lines before use; otherwise, they would never get NUL-terminated and cause read buffer overruns. This fixes for example segfaults in sftp(1) that could be triggered by typing in an extremely long string (more than one line - the longer, the likelier to crash), then hitting backspace once. Problem reported and patch OK'ed by sthen@.
XXX: pullup-8
show more ...
|
| #
e3112e6c |
| 30-Jun-2017 |
kre <kre@NetBSD.org> |
Allow wide characters (properly encoded as byte strings according to LC_CTYPE) to be (perhaps part of) the "invisible" characters in a prompt, or the required prompt character which follows the liter
Allow wide characters (properly encoded as byte strings according to LC_CTYPE) to be (perhaps part of) the "invisible" characters in a prompt, or the required prompt character which follows the literal sequence (this character must be one with a printing column width >= 1). The literal indicator character (which is just a marker, and not printed anywhere) (the PSlit parameter in sh(1)) can also be a wide char (passed to libedit as a wchar_t, encoded as that by sh(1) or other applications that support this.)
Note: this has currently only been tested with everything ascii (C locale).
show more ...
|
| #
f51c99da |
| 27-Jun-2017 |
christos <christos@NetBSD.org> |
fix comment
|
| #
3d09ba7b |
| 27-Jun-2017 |
christos <christos@NetBSD.org> |
- add literal sequence handling.
|
| #
a2d6b270 |
| 09-May-2016 |
christos <christos@NetBSD.org> |
s/protected/libedit_private/g
|
| #
9ff2bfe4 |
| 02-May-2016 |
christos <christos@NetBSD.org> |
fix typos from Pedro Giffuni @FreeBSD
|
| #
469d44f8 |
| 11-Apr-2016 |
christos <christos@NetBSD.org> |
Get rid of private/public; keep protected (Ingo Schwarze)
|
| #
0594af80 |
| 11-Apr-2016 |
christos <christos@NetBSD.org> |
Char -> wchar_t from Ingo Schwarze.
|
| #
0aefc7f9 |
| 11-Apr-2016 |
christos <christos@NetBSD.org> |
more macro WIDECHAR undoing from Ingo Schwarze.
|
| #
fcf85103 |
| 09-Apr-2016 |
christos <christos@NetBSD.org> |
More WIDECHAR elimination (Ingo Schwarze)
|
| #
d784c575 |
| 02-Mar-2016 |
christos <christos@NetBSD.org> |
PR/50880: David Binderman: Remove redundant code. While here, fix all debugging formats.
|
| #
22383670 |
| 17-Feb-2016 |
christos <christos@NetBSD.org> |
whitespace and header sorting changes (Ingo Schwarze). No functional changes.
|
| #
e84df91e |
| 16-Feb-2016 |
christos <christos@NetBSD.org> |
More header cleanups from Ingo Schwarze.
|
| #
aefc1e44 |
| 16-Feb-2016 |
christos <christos@NetBSD.org> |
From Ingo Scharze: Let "el.h" include everything needed for struct editline, and don't include that stuff multiple times. That also improves consistency, also avoids circular inclusions, and also ma
From Ingo Scharze: Let "el.h" include everything needed for struct editline, and don't include that stuff multiple times. That also improves consistency, also avoids circular inclusions, and also makes it easier to follow what is going on, even though not quite as nice. But it seems like the best we can do...
show more ...
|
| #
f09cb8c6 |
| 16-Feb-2016 |
christos <christos@NetBSD.org> |
cleanup chartype.h includes (Ingo Schwarze)
|
| #
40850369 |
| 16-Feb-2016 |
christos <christos@NetBSD.org> |
cleanup inclusion of histedit.h (Ingo Schwarze)
|
| #
f54e4f97 |
| 14-Feb-2016 |
christos <christos@NetBSD.org> |
From Ingo Schwarze:
As we have seen before, "histedit.h" can never get rid of including the <wchar.h> header because using the data types defined there is deeply ingrained in the public interfaces o
From Ingo Schwarze:
As we have seen before, "histedit.h" can never get rid of including the <wchar.h> header because using the data types defined there is deeply ingrained in the public interfaces of libedit.
Now POSIX unconditionally requires that <wchar.h> defines the type wint_t. Consequently, it can be used unconditionally, no matter whether WIDECHAR is active or not. Consequently, the #define Int is pointless.
Note that removing it is not gratuitious churn. Auditing for integer signedness problems is already hard when only fundamental types like "int" and "unsigned" are involved. It gets very hard when types come into the picture that have platform-dependent signedness, like "char" and "wint_t". Adding yet another layer on top, changing both the signedness and the width in a platform- dependent way, makes auditing yet harder, which IMHO is really dangerous. Note that while removing the #define, i already found one bug caused by this excessive complication - in the function re_putc() in refresh.c. If WIDECHAR was defined, it printed an Int = wint_t value with %c. Fortunately, that bug only affects debugging, not production. The fix is contained in the patch.
With WIDECHAR, this doesn't change anything. For the case without WIDECHAR, i checked that none of the places wants to store values that might not fit in wint_t.
This only changes internal interfaces; public ones remain unchanged.
show more ...
|
| #
6af8d673 |
| 11-Feb-2016 |
christos <christos@NetBSD.org> |
- Add some more Char casts - reduce ifdefs by providing empty defs for nls functions (Ingo Schwarze)
|
| #
c11bd863 |
| 29-Jul-2011 |
christos <christos@NetBSD.org> |
pass -Wconversion
|
| #
98c7cbeb |
| 28-Jul-2011 |
christos <christos@NetBSD.org> |
term -> terminal XXX: need to rename key_ too.
|