mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
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:
@@ -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
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user