summaryrefslogtreecommitdiffstats
path: root/lib/libedit/terminal.c
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2015-10-27 21:16:29 +0000
committerjilles <jilles@FreeBSD.org>2015-10-27 21:16:29 +0000
commit2de62537c02c0b57a9fcbbd29b2b9ceb62bb84d5 (patch)
tree88715f4dc46e9a2bbb22c3f95e213b7aa1b3a3a4 /lib/libedit/terminal.c
parente984b742addf983b5812d19b93b8e0c7b7d4810a (diff)
downloadFreeBSD-src-2de62537c02c0b57a9fcbbd29b2b9ceb62bb84d5.zip
FreeBSD-src-2de62537c02c0b57a9fcbbd29b2b9ceb62bb84d5.tar.gz
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)
Diffstat (limited to 'lib/libedit/terminal.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud