mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
vim-patch:8.2.1599: missing line end when skipping a long line with :cgetfile
Problem: Missing line end when skipping a long line with :cgetfile.
Solution: Fix off-by-one error. (closes vim/vim#6870)
59941cbd80
This commit is contained in:
@@ -808,7 +808,7 @@ retry:
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (STRLEN(IObuff) < IOSIZE - 1 || IObuff[IOSIZE - 1] == '\n') {
|
||||
if (STRLEN(IObuff) < IOSIZE - 1 || IObuff[IOSIZE - 2] == '\n') {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user