Mercurial > vim
diff src/ex_cmds.c @ 156:c5b05f6de1ad v7.0047
updated for version 7.0047
author | vimboss |
---|---|
date | Wed, 02 Feb 2005 23:11:38 +0000 |
parents | 1f3902f3eb5c |
children | 389c8abd5925 |
line wrap: on
line diff
--- 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) {