summaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-08-26 20:41:16 +0200
committerBram Moolenaar <Bram@vim.org>2016-08-26 20:41:16 +0200
commit257095760732597983bdd026e791907b7980e295 (patch)
treee528c6e4a6e96b3c4345c25789dc0b027edd6568 /src/ex_cmds.c
parent7df0f6313a46b80d760c9a80241922544333351c (diff)
downloadvim-git-257095760732597983bdd026e791907b7980e295.tar.gz
patch 7.4.2262v7.4.2262
Problem: Fail to read register content from viminfo if it is 438 characters long. (John Chen) Solution: Adjust the check for line wrapping. (closes #1010)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 72d480cc9..64d14aedd 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -2526,7 +2526,7 @@ barline_writestring(FILE *fd, char_u *s, int remaining_start)
else
++len;
}
- if (len > remaining)
+ if (len > remaining - 2)
{
fprintf(fd, ">%d\n|<", len);
remaining = LSIZE - 20;