diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-01-20 20:44:43 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-01-20 20:44:43 +0100 |
commit | f31b764c23ae9a91cd6119f57aee6ea80ec480d2 (patch) | |
tree | 534ff4ba7b47ee9789801b4e7f80fa2fef0e249e /src/ex_getln.c | |
parent | 3ef7cdf0fd040e7247bd395b51b107df0da081ef (diff) | |
download | vim-git-f31b764c23ae9a91cd6119f57aee6ea80ec480d2.tar.gz |
updated for version 7.3.407v7.3.407
Problem: ":12verbose call F()" may duplicate text while trying to truncate.
(Thinca)
Solution: Only truncate when there is not enough room. Also check the byte
length of the buffer.
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 97f8305ab..b63ebb613 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -5923,7 +5923,7 @@ ex_history(eap) hist[i].hisnum); if (vim_strsize(hist[i].hisstr) > (int)Columns - 10) trunc_string(hist[i].hisstr, IObuff + STRLEN(IObuff), - (int)Columns - 10); + (int)Columns - 10, IOSIZE - STRLEN(IObuff)); else STRCAT(IObuff, hist[i].hisstr); msg_outtrans(IObuff); |