vim-patch:7.4.1882

Problem:    Check for line break at end of line wrong. (Dominique Pelle)
Solution:   Correct the logic.

b37662a0fb
This commit is contained in:
James McCoy 2016-12-12 15:05:15 -05:00
parent 1e49cf6f23
commit a86d8b4088
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB
2 changed files with 3 additions and 3 deletions

View File

@ -556,9 +556,9 @@ qf_init_ext (
discard = false; discard = false;
linelen = STRLEN(IObuff); linelen = STRLEN(IObuff);
if (linelen == IOSIZE - 1 && (IObuff[linelen - 1] != '\n' if (linelen == IOSIZE - 1 && !(IObuff[linelen - 1] == '\n'
#ifdef USE_CRNL #ifdef USE_CRNL
|| IObuff[linelen - 1] != '\r' || IObuff[linelen - 1] == '\r'
#endif #endif
)) { )) {
// The current line exceeds IObuff, continue reading using growbuf // The current line exceeds IObuff, continue reading using growbuf

View File

@ -558,7 +558,7 @@ static int included_patches[] = {
// 1885 NA // 1885 NA
// 1884, // 1884,
// 1883 NA // 1883 NA
// 1882, 1882,
1881, 1881,
// 1880 NA // 1880 NA
// 1879 NA // 1879 NA