aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/ui_spec.lua
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2018-04-04 18:53:46 +0200
committerMarco Hinz <mh.codebro@gmail.com>2018-04-04 21:13:14 +0200
commit1fd54f29c19e19c9202a108d621b819ac7b5fba2 (patch)
treec1d99b1a32882f0dcecdab7b2c9cfbae41ad2001 /test/functional/api/ui_spec.lua
parente8c39f72fdf19486ef6f3ab276d6d128ee446dc1 (diff)
downloadrneovim-1fd54f29c19e19c9202a108d621b819ac7b5fba2.tar.gz
rneovim-1fd54f29c19e19c9202a108d621b819ac7b5fba2.tar.bz2
rneovim-1fd54f29c19e19c9202a108d621b819ac7b5fba2.zip
Make vim_fgets() return the same values as in Vim
The implementation of vim_fgets() differs between Neovim and Vim. Vim says that it only returns `true` for EOF. But it always returns `true` when fgets() returns NULL. This happens for EOF _or_ errors. That probably misguided the author of Neovim's vim_fgets(), which does NOT return `true` for errors. Since all the callers of vim_fgets() probably expect it to work as it does in Vim (and not as it says), it now returns the same values as the Vim implementation. Fixes #8227
Diffstat (limited to 'test/functional/api/ui_spec.lua')
0 files changed, 0 insertions, 0 deletions