<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/test/functional/lua/vim_spec.lua, branch nightly</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>feat(lua): enable stack traces in error output (#16228)</title>
<updated>2021-11-06T14:26:10+00:00</updated>
<author>
<name>Gregory Anders</name>
<email>8965202+gpanders@users.noreply.github.com</email>
</author>
<published>2021-11-06T14:26:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=03b805aee617f67eb7f33a54822bc76c23a2c5f5'/>
<id>03b805aee617f67eb7f33a54822bc76c23a2c5f5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>feat: add vim.str_utf_{start,end} (#16129)</title>
<updated>2021-10-30T17:30:40+00:00</updated>
<author>
<name>Michael Lingelbach</name>
<email>m.j.lbach@gmail.com</email>
</author>
<published>2021-10-30T17:30:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=2230b578d1d36728d156f82fb0e1a44c1f810b8c'/>
<id>2230b578d1d36728d156f82fb0e1a44c1f810b8c</id>
<content type='text'>
vim.str_utf_{start,end} return the offset from the current position to
the start and end of the current utf-character (nearest codepoint)
respectively.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
vim.str_utf_{start,end} return the offset from the current position to
the start and end of the current utf-character (nearest codepoint)
respectively.</pre>
</div>
</content>
</entry>
<entry>
<title>feat: add vim.str_utf_pos function</title>
<updated>2021-10-24T10:35:38+00:00</updated>
<author>
<name>Michael Lingelbach</name>
<email>m.j.lbach@gmail.com</email>
</author>
<published>2021-10-23T05:48:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=d752cbc4d2ef67686acb4bbe06e8cdfa79aa23f8'/>
<id>d752cbc4d2ef67686acb4bbe06e8cdfa79aa23f8</id>
<content type='text'>
vim.str_utf_pos returns the codepoints for all utf-8 chars (only, currently)
in a string
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
vim.str_utf_pos returns the codepoints for all utf-8 chars (only, currently)
in a string
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #14794 from BK1603/gdbserver_fix</title>
<updated>2021-10-20T19:27:40+00:00</updated>
<author>
<name>Matthieu Coudron</name>
<email>teto@users.noreply.github.com</email>
</author>
<published>2021-10-20T19:27:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=d0f10a7addc17149d7e63ff20705762c357eb469'/>
<id>d0f10a7addc17149d7e63ff20705762c357eb469</id>
<content type='text'>
functionaltest: fix running tests under gdbserver</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
functionaltest: fix running tests under gdbserver</pre>
</div>
</content>
</entry>
<entry>
<title>feat(lua): allow passing handles to vim.b/w/t</title>
<updated>2021-10-19T18:47:33+00:00</updated>
<author>
<name>Lewis Russell</name>
<email>lewis6991@gmail.com</email>
</author>
<published>2021-09-23T14:00:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=6c5e7bde9a1b207345787a60f6c37a325be26c64'/>
<id>6c5e7bde9a1b207345787a60f6c37a325be26c64</id>
<content type='text'>
vim.bo can target a specific buffer by indexing with a number, e.g:
`vim.bo[2].filetype` can get/set the filetype for buffer 2. This change
replicates that behaviour for the variable namespace.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
vim.bo can target a specific buffer by indexing with a number, e.g:
`vim.bo[2].filetype` can get/set the filetype for buffer 2. This change
replicates that behaviour for the variable namespace.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(runtime): don't use regexes inside lua require'mod'</title>
<updated>2021-10-17T14:21:42+00:00</updated>
<author>
<name>Björn Linse</name>
<email>bjorn.linse@gmail.com</email>
</author>
<published>2021-09-28T11:51:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=ea2023f689ad8f368faad6e52c85fbc9762a7296'/>
<id>ea2023f689ad8f368faad6e52c85fbc9762a7296</id>
<content type='text'>
Fixes #15147 and fixes #15497. Also sketch "subdir" caching. Currently
this only caches whether an rtp entry has a "lua/" subdir but we could
consider cache other subdirs potentially or even "lua/mybigplugin/"
possibly.

Note: the async_leftpad test doesn't actually fail on master, at least
not deterministically (even when disabling the fast_breakcheck
throttling). It's still useful as a regression test for further changes
and included as such.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #15147 and fixes #15497. Also sketch "subdir" caching. Currently
this only caches whether an rtp entry has a "lua/" subdir but we could
consider cache other subdirs potentially or even "lua/mybigplugin/"
possibly.

Note: the async_leftpad test doesn't actually fail on master, at least
not deterministically (even when disabling the fast_breakcheck
throttling). It's still useful as a regression test for further changes
and included as such.
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor: use kwargs parameter in vim.split</title>
<updated>2021-09-26T02:11:32+00:00</updated>
<author>
<name>Gregory Anders</name>
<email>greg@gpanders.com</email>
</author>
<published>2021-09-26T02:08:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=84f66909e4008a57da947f1640bfc24da5e41a72'/>
<id>84f66909e4008a57da947f1640bfc24da5e41a72</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>feat: add trimempty optional parameter to vim.split</title>
<updated>2021-09-26T02:11:30+00:00</updated>
<author>
<name>Gregory Anders</name>
<email>greg@gpanders.com</email>
</author>
<published>2021-07-29T20:48:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=5fa26e2c2fcc208ca31187de4338d5b6f746f2e1'/>
<id>5fa26e2c2fcc208ca31187de4338d5b6f746f2e1</id>
<content type='text'>
The `split()` VimL function trims empty items from the returned list by
default, so that, e.g.

  split("\nhello\nworld\n\n", "\n")

returns

  ["hello", "world"]

The Lua implementation of vim.split does not do this. For example,

  vim.split("\nhello\nworld\n\n", "\n")

returns

  {'', 'hello', 'world', '', ''}

Add an optional parameter to the vim.split function that, when true,
trims these empty elements from the front and back of the returned
table. This is only possible for vim.split and not vim.gsplit; because
vim.gsplit is an iterator, there is no way for it to know if the current
item is the last non-empty item.

Note that in order to preserve backward compatibility, the parameter for
the Lua vim.split function is `trimempty`, while the VimL function uses
`keepempty` (i.e. they are opposites). This means there is a disconnect
between these two functions that may surprise users.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The `split()` VimL function trims empty items from the returned list by
default, so that, e.g.

  split("\nhello\nworld\n\n", "\n")

returns

  ["hello", "world"]

The Lua implementation of vim.split does not do this. For example,

  vim.split("\nhello\nworld\n\n", "\n")

returns

  {'', 'hello', 'world', '', ''}

Add an optional parameter to the vim.split function that, when true,
trims these empty elements from the front and back of the returned
table. This is only possible for vim.split and not vim.gsplit; because
vim.gsplit is an iterator, there is no way for it to know if the current
item is the last non-empty item.

Note that in order to preserve backward compatibility, the parameter for
the Lua vim.split function is `trimempty`, while the VimL function uses
`keepempty` (i.e. they are opposites). This means there is a disconnect
between these two functions that may surprise users.
</pre>
</div>
</content>
</entry>
<entry>
<title>test: close timers in vim_spec.lua functional test</title>
<updated>2021-09-20T12:40:40+00:00</updated>
<author>
<name>Shreyansh Chouhan</name>
<email>chouhan.shreyansh2702@gmail.com</email>
</author>
<published>2021-09-19T16:50:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=12bccc7dd19e55068156ec5fb55bbf960ec4aad8'/>
<id>12bccc7dd19e55068156ec5fb55bbf960ec4aad8</id>
<content type='text'>
Close the timer started during tests before closing the session. This
fixes the uv_loop_close hangs happening in the functional tests.

Signed-off-by: Shreyansh Chouhan &lt;chouhan.shreyansh2702@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Close the timer started during tests before closing the session. This
fixes the uv_loop_close hangs happening in the functional tests.

Signed-off-by: Shreyansh Chouhan &lt;chouhan.shreyansh2702@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:8.1.0793: incorrect error messages for functions that take a Blob</title>
<updated>2021-09-15T21:30:31+00:00</updated>
<author>
<name>Sean Dewar</name>
<email>seandewar@users.noreply.github.com</email>
</author>
<published>2020-12-02T18:37:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=c57132ec2a9c16facff7858c8610c3206398fe7e'/>
<id>c57132ec2a9c16facff7858c8610c3206398fe7e</id>
<content type='text'>
Problem:    Incorrect error messages for functions that now take a Blob
            argument.
Solution:   Adjust the error messages. (Dominique Pelle, closes vim/vim#3846)
https://github.com/vim/vim/commit/0d17f0d1c09fa6db306336695ba646c21ea24909
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    Incorrect error messages for functions that now take a Blob
            argument.
Solution:   Adjust the error messages. (Dominique Pelle, closes vim/vim#3846)
https://github.com/vim/vim/commit/0d17f0d1c09fa6db306336695ba646c21ea24909
</pre>
</div>
</content>
</entry>
</feed>
