diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-06 23:14:41 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-07 01:37:50 -0400 |
commit | 670a577c6b7b6f950c738261937c2b6d55a7faec (patch) | |
tree | 5ddaeeafab707b6e32b6c49615ddae498ac3fb29 /src/nvim/quickfix.c | |
parent | 4a6e201e37a9b08860cb823c528ea062002b7ebc (diff) | |
download | rneovim-670a577c6b7b6f950c738261937c2b6d55a7faec.tar.gz rneovim-670a577c6b7b6f950c738261937c2b6d55a7faec.tar.bz2 rneovim-670a577c6b7b6f950c738261937c2b6d55a7faec.zip |
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)
https://github.com/vim/vim/commit/59941cbd8035415d68683edc4e571306b10669ad
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 7d4f52af34..1fe301b0d9 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -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; } } |