freebsd-dev/lib/libedit
Jilles Tjoelker f1d04a2543 libedit: Use correct buffer lengths in vi mode v command.
Libedit's vi mode provides a v command to edit the current line in vi(1)
(hard-coded to vi, in fact).

When Unicode/wide character mode was added, this command started truncating
and/or corrupting the edited text.

This commit fixes v if the text fits into the buffer. If the text is longer,
it is truncated.

PR:		203743
Obtained from:	NetBSD (originally submitted by me)
2015-10-27 21:16:29 +00:00
..
edit/readline Add META_MODE support. 2015-06-13 19:20:56 +00:00
TEST Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
chared.c Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
chared.h Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
chartype.c Synchronize libedit with NetBSD 2015-05-18 22:03:05 +00:00
chartype.h Synchronize libedit with NetBSD 2015-05-18 22:03:05 +00:00
common.c Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
config.h Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
editline.3 Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
editrc.5 Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
el.c Synchronize libedit with NetBSD 2015-05-18 22:03:05 +00:00
el.h Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
eln.c Synchronize libedit with NetBSD 2015-05-18 22:03:05 +00:00
emacs.c Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
filecomplete.c Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
filecomplete.h Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
hist.c Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
hist.h Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
histedit.h Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
history.c Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
keymacro.c Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
keymacro.h Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
Makefile Revert r284417 it is not necessary anymore 2015-06-15 19:28:07 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
makelist Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
map.c Synchronize libedit with NetBSD 2015-05-18 22:03:05 +00:00
map.h Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
parse.c Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
parse.h Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
prompt.c Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
prompt.h Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
read.c Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
read.h Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
readline.c Sync with NetBSD: 2015-06-07 10:01:59 +00:00
refresh.c Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
refresh.h Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
search.c Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
search.h Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
sig.c Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
sig.h Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
sys.h Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
terminal.c Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
terminal.h Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
tokenizer.c Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
tty.c Synchronize libedit with NetBSD 2015-05-18 22:03:05 +00:00
tty.h Synchronize libedit with NetBSD and activate UTF-8 support [1] 2015-01-09 07:40:56 +00:00
vi.c libedit: Use correct buffer lengths in vi mode v command. 2015-10-27 21:16:29 +00:00