jilles 2de62537c0 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
..
2015-06-13 19:20:56 +00:00
2015-05-18 22:03:05 +00:00
2015-05-18 22:03:05 +00:00
2015-05-18 22:03:05 +00:00
2015-05-18 22:03:05 +00:00
2015-06-13 19:20:56 +00:00
2015-05-18 22:03:05 +00:00
2015-06-07 10:01:59 +00:00
2015-05-18 22:03:05 +00:00