<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/src/nvim/testdir/test_method.vim, branch tmp</title>
<subtitle>Neovim fork with Rahm's personal hacks.</subtitle>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/'/>
<entry>
<title>vim-patch:8.2.0155: MinGW warnings; tests without +float #15908</title>
<updated>2021-10-05T17:58:06+00:00</updated>
<author>
<name>Jan Edmund Lazo</name>
<email>jan.lazo@mail.utoronto.ca</email>
</author>
<published>2021-10-05T17:58:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=6a930a9dc4ddf190b528c945f19bc0a0bad2cc29'/>
<id>6a930a9dc4ddf190b528c945f19bc0a0bad2cc29</id>
<content type='text'>
Problem:    Warnings from MinGW compiler. (John Marriott) Json test fails when
            building without +float feature.
Solution:   Init variables. Fix Json parsing. Skip a few tests that require
            the +float feature.
https://github.com/vim/vim/commit/a5d5953d59730d9bf9c00a727c4aeb56f6ffc944

Omit vim9 changes.
vim9 internal implementation is N/A,
similar to the `vimscript-*` features.

N/A patches for version.c:

vim-patch:8.1.0737: compiler warning for uninitialized variable

Problem:    Compiler warning for uninitialized variable.
Solution:   Add initialization. (John Marriott)
https://github.com/vim/vim/commit/e519dfd7139d504ada44031a986482ac4fb1229a

vim-patch:8.1.1385: signed/unsigned compiler warning

Problem:    Signed/unsigned compiler warning.
Solution:   Use STRLEN() instead of strlen().
https://github.com/vim/vim/commit/71de720c2c117137185a6fc233b35aab37f0d4bc

vim-patch:8.2.0165: Coverity warning for using NULL pointer

Problem:    Coverity warning for using NULL pointer.
Solution:   Add missing "else".
https://github.com/vim/vim/commit/5b18c248d3fe4961076dbc59c960ef60c80650f0

vim-patch:8.2.0166: Coverity warning for using uninitialized variable

Problem:    Coverity warning for using uninitialized variable.
Solution:   Check for failure.
https://github.com/vim/vim/commit/07da94b0f07beb15c7e26b78837def5a91e102dc

vim-patch:8.2.0167: Coverity warning for ignoring return value

Problem:    Coverity warning for ignoring return value.
Solution:   Check the return value and jump if failed.
https://github.com/vim/vim/commit/58ceca5cae75ed839b20a89c5fa9998f02552f58

"src/testdir/test_vim9*.vim" files are N/A
because vim9 code is currently unsupported.

vim-patch:8.2.0168: Coverity warning for assigning NULL to an option

Problem:    Coverity warning for assigning NULL to an option.
Solution:   Use empty string instead of NULL.
https://github.com/vim/vim/commit/97a2af39cd3249c6cbe5a5c59bc24167632d39ad

vim-patch:8.2.0169: Coverity warning for dead code

Problem:    Coverity warning for dead code.
Solution:   Check if inside try-finally.
https://github.com/vim/vim/commit/8cbd6dfc0c9d84c5be8414dfdea3b28b72dfddb6

vim-patch:8.2.0170: Coverity warning for ignoring return value

Problem:    Coverity warning for ignoring return value.
Solution:   Check the return value and return if failed.
https://github.com/vim/vim/commit/a6d536829a2c3151f3d0faa0ecdc7b8230fb11ec

vim-patch:8.2.0172: Coverity warning for not restoring character

Problem:    Coverity warning for not restoring character.
Solution:   Restore the character also in case of failure.
https://github.com/vim/vim/commit/4549ece47cc8d6487d8e64ae37361fea87e3ad39

vim-patch:8.2.0254: compiler warning for checking size_t to be negative

Problem:    Compiler warning for checking size_t to be negative.
Solution:   Only check for zero. (Zoltan Arpadffy)
https://github.com/vim/vim/commit/ae8d2de3a9c0436a543c7d46071104af31ff6db7

vim-patch:8.2.0326: compiler warning for using uninitialized variable

Problem:    Compiler warning for using uninitialized variable. (Yegappan
            Lakshmanan)
Solution:   Do not jump to failed but return.
https://github.com/vim/vim/commit/d5aec0ced17f8f60761128bff32e54ad2d1d57ef

vim-patch:8.2.3387: compiler warning for non-static function

Problem:    Compiler warning for non-static function.
Solution:   Make the function static. (Dominique Pellé, closes vim/vim#8816)
https://github.com/vim/vim/commit/de05ae71589f46c5d27642c33fe5eb21b22aaf5d</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    Warnings from MinGW compiler. (John Marriott) Json test fails when
            building without +float feature.
Solution:   Init variables. Fix Json parsing. Skip a few tests that require
            the +float feature.
https://github.com/vim/vim/commit/a5d5953d59730d9bf9c00a727c4aeb56f6ffc944

Omit vim9 changes.
vim9 internal implementation is N/A,
similar to the `vimscript-*` features.

N/A patches for version.c:

vim-patch:8.1.0737: compiler warning for uninitialized variable

Problem:    Compiler warning for uninitialized variable.
Solution:   Add initialization. (John Marriott)
https://github.com/vim/vim/commit/e519dfd7139d504ada44031a986482ac4fb1229a

vim-patch:8.1.1385: signed/unsigned compiler warning

Problem:    Signed/unsigned compiler warning.
Solution:   Use STRLEN() instead of strlen().
https://github.com/vim/vim/commit/71de720c2c117137185a6fc233b35aab37f0d4bc

vim-patch:8.2.0165: Coverity warning for using NULL pointer

Problem:    Coverity warning for using NULL pointer.
Solution:   Add missing "else".
https://github.com/vim/vim/commit/5b18c248d3fe4961076dbc59c960ef60c80650f0

vim-patch:8.2.0166: Coverity warning for using uninitialized variable

Problem:    Coverity warning for using uninitialized variable.
Solution:   Check for failure.
https://github.com/vim/vim/commit/07da94b0f07beb15c7e26b78837def5a91e102dc

vim-patch:8.2.0167: Coverity warning for ignoring return value

Problem:    Coverity warning for ignoring return value.
Solution:   Check the return value and jump if failed.
https://github.com/vim/vim/commit/58ceca5cae75ed839b20a89c5fa9998f02552f58

"src/testdir/test_vim9*.vim" files are N/A
because vim9 code is currently unsupported.

vim-patch:8.2.0168: Coverity warning for assigning NULL to an option

Problem:    Coverity warning for assigning NULL to an option.
Solution:   Use empty string instead of NULL.
https://github.com/vim/vim/commit/97a2af39cd3249c6cbe5a5c59bc24167632d39ad

vim-patch:8.2.0169: Coverity warning for dead code

Problem:    Coverity warning for dead code.
Solution:   Check if inside try-finally.
https://github.com/vim/vim/commit/8cbd6dfc0c9d84c5be8414dfdea3b28b72dfddb6

vim-patch:8.2.0170: Coverity warning for ignoring return value

Problem:    Coverity warning for ignoring return value.
Solution:   Check the return value and return if failed.
https://github.com/vim/vim/commit/a6d536829a2c3151f3d0faa0ecdc7b8230fb11ec

vim-patch:8.2.0172: Coverity warning for not restoring character

Problem:    Coverity warning for not restoring character.
Solution:   Restore the character also in case of failure.
https://github.com/vim/vim/commit/4549ece47cc8d6487d8e64ae37361fea87e3ad39

vim-patch:8.2.0254: compiler warning for checking size_t to be negative

Problem:    Compiler warning for checking size_t to be negative.
Solution:   Only check for zero. (Zoltan Arpadffy)
https://github.com/vim/vim/commit/ae8d2de3a9c0436a543c7d46071104af31ff6db7

vim-patch:8.2.0326: compiler warning for using uninitialized variable

Problem:    Compiler warning for using uninitialized variable. (Yegappan
            Lakshmanan)
Solution:   Do not jump to failed but return.
https://github.com/vim/vim/commit/d5aec0ced17f8f60761128bff32e54ad2d1d57ef

vim-patch:8.2.3387: compiler warning for non-static function

Problem:    Compiler warning for non-static function.
Solution:   Make the function static. (Dominique Pellé, closes vim/vim#8816)
https://github.com/vim/vim/commit/de05ae71589f46c5d27642c33fe5eb21b22aaf5d</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:8.1.0735: cannot handle binary data</title>
<updated>2021-09-15T20:19:22+00:00</updated>
<author>
<name>Sean Dewar</name>
<email>seandewar@users.noreply.github.com</email>
</author>
<published>2020-11-18T03:11:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=9095101743b2606fb1d5f7a5a1216f22d2fb2b4a'/>
<id>9095101743b2606fb1d5f7a5a1216f22d2fb2b4a</id>
<content type='text'>
Problem:    Cannot handle binary data.
Solution:   Add the Blob type. (Yasuhiro Matsumoto, closes vim/vim#3638)
https://github.com/vim/vim/commit/6e5ea8d2a995b32bbc5972edc4f827b959f2702f

Nvim-specific Blob conversions are implemented in future commits.

Refactor write_blob() to use a FileDescriptor, as f_writefile() was
refactored to use one (does not apply to read_blob()).

Use var_check_lock() in f_add() for Blobs from v8.1.0897.

Add a modeline to test_blob.vim and fix some doc typos.

Include if_perl.txt's VIM::Blob() documentation. Interestingly, this
function already worked before this port, as it just returns a Blob
string literal, not an actual Blob object.

N/A patches for version.c:

vim-patch:8.1.0741: viminfo with Blob is not tested

Problem:    Viminfo with Blob is not tested.
Solution:   Extend the viminfo test.  Fix reading a blob.  Fixed storing a
            special variable value.
https://github.com/vim/vim/commit/8c8b8bb56c724cc1bfc3d8520eec33f2d399697c

vim-patch:8.1.1022: may use NULL pointer when out of memory

Problem:    May use NULL pointer when out of memory. (Coverity)
Solution:   Check for blob_alloc() returning NULL.
https://github.com/vim/vim/commit/e142a9467a7f6845a426d8db6efedf246d3c13ac
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    Cannot handle binary data.
Solution:   Add the Blob type. (Yasuhiro Matsumoto, closes vim/vim#3638)
https://github.com/vim/vim/commit/6e5ea8d2a995b32bbc5972edc4f827b959f2702f

Nvim-specific Blob conversions are implemented in future commits.

Refactor write_blob() to use a FileDescriptor, as f_writefile() was
refactored to use one (does not apply to read_blob()).

Use var_check_lock() in f_add() for Blobs from v8.1.0897.

Add a modeline to test_blob.vim and fix some doc typos.

Include if_perl.txt's VIM::Blob() documentation. Interestingly, this
function already worked before this port, as it just returns a Blob
string literal, not an actual Blob object.

N/A patches for version.c:

vim-patch:8.1.0741: viminfo with Blob is not tested

Problem:    Viminfo with Blob is not tested.
Solution:   Extend the viminfo test.  Fix reading a blob.  Fixed storing a
            special variable value.
https://github.com/vim/vim/commit/8c8b8bb56c724cc1bfc3d8520eec33f2d399697c

vim-patch:8.1.1022: may use NULL pointer when out of memory

Problem:    May use NULL pointer when out of memory. (Coverity)
Solution:   Check for blob_alloc() returning NULL.
https://github.com/vim/vim/commit/e142a9467a7f6845a426d8db6efedf246d3c13ac
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(eval_lambda): cherry-pick leak fix from v8.1.2107</title>
<updated>2021-08-12T21:35:25+00:00</updated>
<author>
<name>Sean Dewar</name>
<email>seandewar@users.noreply.github.com</email>
</author>
<published>2021-08-06T23:48:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=5503d8e28b1636f07bff4123a824b9ffdde4ca29'/>
<id>5503d8e28b1636f07bff4123a824b9ffdde4ca29</id>
<content type='text'>
That patch also includes a test using test_refcount() for lambdas, but
such test functions are N/A for Nvim.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
That patch also includes a test using test_refcount() for lambdas, but
such test functions are N/A for Nvim.
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(eval): partially port v8.1.1915</title>
<updated>2021-08-12T21:35:25+00:00</updated>
<author>
<name>Sean Dewar</name>
<email>seandewar@users.noreply.github.com</email>
</author>
<published>2021-08-07T21:39:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=5d883498179651c6da95b10959e83cf8707eaa4f'/>
<id>5d883498179651c6da95b10959e83cf8707eaa4f</id>
<content type='text'>
Cannot be fully ported as chdir() hasn't been ported yet.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Cannot be fully ported as chdir() hasn't been ported yet.
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:8.1.1878: negative float before method not parsed correctly</title>
<updated>2021-08-12T21:35:23+00:00</updated>
<author>
<name>Sean Dewar</name>
<email>seandewar@users.noreply.github.com</email>
</author>
<published>2021-08-07T14:18:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=7474db98afcae3a47732d1ba99971b500a519cb2'/>
<id>7474db98afcae3a47732d1ba99971b500a519cb2</id>
<content type='text'>
Problem:    Negative float before method not parsed correctly.
Solution:   Apply "!" and "-" in front of expression before using -&gt;.
https://github.com/vim/vim/commit/9cfe8f6e68de4bfb5942d84f4465de914a747b3f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    Negative float before method not parsed correctly.
Solution:   Apply "!" and "-" in front of expression before using -&gt;.
https://github.com/vim/vim/commit/9cfe8f6e68de4bfb5942d84f4465de914a747b3f
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:8.1.1863: confusing error when using a builtin function as method</title>
<updated>2021-08-12T21:35:23+00:00</updated>
<author>
<name>Sean Dewar</name>
<email>seandewar@users.noreply.github.com</email>
</author>
<published>2021-08-07T14:10:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=98dfe4adc48d83e05b2ee039869853760de9c096'/>
<id>98dfe4adc48d83e05b2ee039869853760de9c096</id>
<content type='text'>
Problem:    Confusing error when using a builtin function as method while it
            does not support that.
Solution:   Add a specific error message.
https://github.com/vim/vim/commit/9174639a82799011cfa0013cbc4c4709b3833bf0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    Confusing error when using a builtin function as method while it
            does not support that.
Solution:   Add a specific error message.
https://github.com/vim/vim/commit/9174639a82799011cfa0013cbc4c4709b3833bf0
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:8.1.1835: cannot use printf() as a method</title>
<updated>2021-08-12T21:35:22+00:00</updated>
<author>
<name>Sean Dewar</name>
<email>seandewar@users.noreply.github.com</email>
</author>
<published>2021-08-07T00:08:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=f03dd22f0d37af88f40a27c694c3265026178e80'/>
<id>f03dd22f0d37af88f40a27c694c3265026178e80</id>
<content type='text'>
Problem:    Cannot use printf() as a method.
Solution:   Pass the base as the second argument to printf().
https://github.com/vim/vim/commit/fd8ca21b3ff207e44891aef922935d4adcd140cf
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    Cannot use printf() as a method.
Solution:   Pass the base as the second argument to printf().
https://github.com/vim/vim/commit/fd8ca21b3ff207e44891aef922935d4adcd140cf
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:8.1.1834: cannot use a lambda as a method</title>
<updated>2021-08-12T21:35:22+00:00</updated>
<author>
<name>Sean Dewar</name>
<email>seandewar@users.noreply.github.com</email>
</author>
<published>2021-08-06T20:08:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=5811390f82c51a4bb15b2e8901e6b5a1d453480a'/>
<id>5811390f82c51a4bb15b2e8901e6b5a1d453480a</id>
<content type='text'>
Problem:    Cannot use a lambda as a method.
Solution:   Implement -&gt;{lambda}(). (closes vim/vim#4768)
https://github.com/vim/vim/commit/22a0c0c4ecd23b6c43f79ba9b92899ca0b426e29

Add an additional lua_funcname argument to call_func_rettv() to maintain
support for v:lua.

A memory leak was introduced with this patch that was fixed in
v8.1.2107.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    Cannot use a lambda as a method.
Solution:   Implement -&gt;{lambda}(). (closes vim/vim#4768)
https://github.com/vim/vim/commit/22a0c0c4ecd23b6c43f79ba9b92899ca0b426e29

Add an additional lua_funcname argument to call_func_rettv() to maintain
support for v:lua.

A memory leak was introduced with this patch that was fixed in
v8.1.2107.
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:8.1.1828: not strict enough checking syntax of method invocation</title>
<updated>2021-08-12T21:35:21+00:00</updated>
<author>
<name>Sean Dewar</name>
<email>seandewar@users.noreply.github.com</email>
</author>
<published>2021-08-06T20:04:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=32589341a41f49a11e68d5b080271115787f2dc5'/>
<id>32589341a41f49a11e68d5b080271115787f2dc5</id>
<content type='text'>
Problem:    Not strict enough checking syntax of method invocation.
Solution:   Check there is no white space inside -&gt;method(.
https://github.com/vim/vim/commit/5184132ec015f5889a3195d911e609d214f06bed
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    Not strict enough checking syntax of method invocation.
Solution:   Check there is no white space inside -&gt;method(.
https://github.com/vim/vim/commit/5184132ec015f5889a3195d911e609d214f06bed
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:8.1.1821: no test for wrong number of method arguments</title>
<updated>2021-08-12T21:35:21+00:00</updated>
<author>
<name>Sean Dewar</name>
<email>seandewar@users.noreply.github.com</email>
</author>
<published>2021-08-06T19:39:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=daedbd93124e3334a1024b5d2c60e91b7aeb8fc5'/>
<id>daedbd93124e3334a1024b5d2c60e91b7aeb8fc5</id>
<content type='text'>
Problem:    No test for wrong number of method arguments.
Solution:   Add a test.
https://github.com/vim/vim/commit/f97d46f816e84edb6899a903a1c334a50a6d31bb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    No test for wrong number of method arguments.
Solution:   Add a test.
https://github.com/vim/vim/commit/f97d46f816e84edb6899a903a1c334a50a6d31bb
</pre>
</div>
</content>
</entry>
</feed>
