Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
getchar: Handle incomplete <Paste> in typeahead buffer
<Paste> is a 3-byte sequence and the beginning one or two bytes can appear at the very end of the typeahead buffer. When this happens, we were exiting from `vgetorpeek()` instead of reading more characters to see the complete sequence. I think this should fix neovim#7994 -- at least partially. Before this change, when I paste exactly 64 characters into a freshly booted instance, I get what I pasted plus the literal text "<Paste>" at the end. Nvim also stays in nopaste mode. The attached test case fails in this manner without the code change. Fix neovim#7994
- Loading branch information