diff options
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 14f7580134..224a126682 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -1286,6 +1286,8 @@ viminfo_error(errnum, message, line) { sprintf((char *)IObuff, _("%sviminfo: %s in line: "), errnum, message); STRNCAT(IObuff, line, IOSIZE - STRLEN(IObuff)); + if (IObuff[STRLEN(IObuff) - 1] == '\n') + IObuff[STRLEN(IObuff) - 1] = NUL; emsg(IObuff); if (++viminfo_errcnt >= 10) { |