<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/test/functional/ex_cmds/source_spec.lua, 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>fix(source): fix expand('&lt;sfile&gt;') no longer works for Lua</title>
<updated>2022-08-15T21:39:44+00:00</updated>
<author>
<name>zeertzjq</name>
<email>zeertzjq@outlook.com</email>
</author>
<published>2022-08-15T05:40:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=d1464d16d6897144b29c22f8113aad9b7210e14c'/>
<id>d1464d16d6897144b29c22f8113aad9b7210e14c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(source): make changing 'shellslash' change expand() result</title>
<updated>2022-08-15T02:14:53+00:00</updated>
<author>
<name>zeertzjq</name>
<email>zeertzjq@outlook.com</email>
</author>
<published>2022-08-15T00:28:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=9ab9eb1220113d247dd1eb089cb6576a135b8699'/>
<id>9ab9eb1220113d247dd1eb089cb6576a135b8699</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test: add a test for what Vim patch 8.2.0151 fixes</title>
<updated>2022-07-08T06:18:16+00:00</updated>
<author>
<name>zeertzjq</name>
<email>zeertzjq@outlook.com</email>
</author>
<published>2022-07-08T06:15:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=a6803f3adfc8b493c9e76343cc78f99ca8c1d3c9'/>
<id>a6803f3adfc8b493c9e76343cc78f99ca8c1d3c9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(:source, nvim_exec): defer script item creation until s:var access</title>
<updated>2021-10-14T11:50:04+00:00</updated>
<author>
<name>Sean Dewar</name>
<email>seandewar@users.noreply.github.com</email>
</author>
<published>2021-10-13T23:40:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=da9b0abc67a936021a4ecf7634395db860edcab1'/>
<id>da9b0abc67a936021a4ecf7634395db860edcab1</id>
<content type='text'>
For anonymous scripts, defer the creation of script items until an attempt to access a script-local
variable is made. This dramatically reduces the number of script items created when using lots of
vim.cmd and nvim_exec especially.

This will mean &lt;SID&gt; usage fails until a script-local variable access is first made.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For anonymous scripts, defer the creation of script items until an attempt to access a script-local
variable is made. This dramatically reduces the number of script items created when using lots of
vim.cmd and nvim_exec especially.

This will mean &lt;SID&gt; usage fails until a script-local variable access is first made.
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(:source, nvim_exec): support script-local variables</title>
<updated>2021-10-14T00:27:10+00:00</updated>
<author>
<name>Sean Dewar</name>
<email>seandewar@users.noreply.github.com</email>
</author>
<published>2021-10-09T21:13:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=d4ed51eb4492d4358eb4ab0c939802f2a5fdc636'/>
<id>d4ed51eb4492d4358eb4ab0c939802f2a5fdc636</id>
<content type='text'>
Based on #13143 (and #11507) with changes:

 - Omit script_type_E. Use sn_name == NULL to determine anon items.
 - Keep SID_STR. Used by anon :source for .lua files (no item).
 - Show SID in get_scriptname output (:verbose set).
 - Factor item creation into new_script_item.
 - Leave sc_seq = 0 (anon scripts don't re-use the same item when re-sourced).
 - Add tests for anon :source.

Co-authored-by: Vikram Pal &lt;vikrampal659@gmail.com&gt;
Co-authored-by: Justin M. Keyes &lt;justinkz@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Based on #13143 (and #11507) with changes:

 - Omit script_type_E. Use sn_name == NULL to determine anon items.
 - Keep SID_STR. Used by anon :source for .lua files (no item).
 - Show SID in get_scriptname output (:verbose set).
 - Factor item creation into new_script_item.
 - Leave sc_seq = 0 (anon scripts don't re-use the same item when re-sourced).
 - Add tests for anon :source.

Co-authored-by: Vikram Pal &lt;vikrampal659@gmail.com&gt;
Co-authored-by: Justin M. Keyes &lt;justinkz@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(:source): copy curbuf lines to memory before sourcing #15111</title>
<updated>2021-09-15T12:17:07+00:00</updated>
<author>
<name>Sean Dewar</name>
<email>seandewar@users.noreply.github.com</email>
</author>
<published>2021-09-15T12:17:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=afdc9e61502a9f02c8cf5156652a1bde027e4345'/>
<id>afdc9e61502a9f02c8cf5156652a1bde027e4345</id>
<content type='text'>
It's possible for weirdness to happen if curbuf is modified while
sourcing from it via :source (with no arguments). For example:

- Deleting lines from or wiping curbuf can cause internal error E315 to
  be thrown from ml_get.
- Changing the curbuf to another buffer while sourcing can cause lines
  from the new curbuf to then be sourced instead.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's possible for weirdness to happen if curbuf is modified while
sourcing from it via :source (with no arguments). For example:

- Deleting lines from or wiping curbuf can cause internal error E315 to
  be thrown from ml_get.
- Changing the curbuf to another buffer while sourcing can cause lines
  from the new curbuf to then be sourced instead.</pre>
</div>
</content>
</entry>
<entry>
<title>fix(:source, nvim_exec): handle Vimscript line continuations #14809</title>
<updated>2021-09-14T23:35:33+00:00</updated>
<author>
<name>Sean Dewar</name>
<email>seandewar@users.noreply.github.com</email>
</author>
<published>2021-09-14T23:35:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=6188926e00081ae4b1a33d5fd12692a6749a2144'/>
<id>6188926e00081ae4b1a33d5fd12692a6749a2144</id>
<content type='text'>
Problem:
Anonymous :source (no args) and nvim_exec() don't support Vimscript line continuations.

Solution:
Factor out the concat logic into concat_continued_line() and a
CONCAT_CONTINUED_LINES macro for simple concatenations where lines are
fetched individually.

Closes #14807</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:
Anonymous :source (no args) and nvim_exec() don't support Vimscript line continuations.

Solution:
Factor out the concat logic into concat_continued_line() and a
CONCAT_CONTINUED_LINES macro for simple concatenations where lines are
fetched individually.

Closes #14807</pre>
</div>
</content>
</entry>
<entry>
<title>fix(source): Source giving E484 &amp; parsing error at line 1 for lua files</title>
<updated>2021-06-21T07:07:05+00:00</updated>
<author>
<name>shadmansaleh</name>
<email>shadmansaleh3@gmail.com</email>
</author>
<published>2021-06-20T17:07:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=b4ac8780267d9164a84deaec27fbc6260f765514'/>
<id>b4ac8780267d9164a84deaec27fbc6260f765514</id>
<content type='text'>
It's happening because do_source is only expected to return FAIL when it
was unable to open file . But `nlua_exec_file` returns fail for parsing
and execution error too . Those errors are emitted through `nlua_error`.

So now return value of nlua_exec_file is ignored like do_cmdline. It now
only returns fail when it was unable to open file that check is done
before calling nlua_exec_file or do_cmdline. Errors in nlua_exec_file
are still directly emitted through nlua_error like before.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's happening because do_source is only expected to return FAIL when it
was unable to open file . But `nlua_exec_file` returns fail for parsing
and execution error too . Those errors are emitted through `nlua_error`.

So now return value of nlua_exec_file is ignored like do_cmdline. It now
only returns fail when it was unable to open file that check is done
before calling nlua_exec_file or do_cmdline. Errors in nlua_exec_file
are still directly emitted through nlua_error like before.
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor(source): Move lua file detection to do_source</title>
<updated>2021-06-10T19:01:03+00:00</updated>
<author>
<name>shadmansaleh</name>
<email>shadmansaleh3@gmail.com</email>
</author>
<published>2021-06-03T01:07:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=e1edc079dd0d0cb4a53e5998086568cf9d10a26a'/>
<id>e1edc079dd0d0cb4a53e5998086568cf9d10a26a</id>
<content type='text'>
So now :source can run lua files too :)

* feat: Add support for :[ranged]source for lua files
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
So now :source can run lua files too :)

* feat: Add support for :[ranged]source for lua files
</pre>
</div>
</content>
</entry>
<entry>
<title>[RFC] ":source" sources from current buffer if filename is omitted (#11444)</title>
<updated>2021-02-18T06:25:51+00:00</updated>
<author>
<name>Vikram Pal</name>
<email>vikrampal659@gmail.com</email>
</author>
<published>2021-02-18T06:25:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=4d5dbea4f402c76de4419977f7f89d3dec572510'/>
<id>4d5dbea4f402c76de4419977f7f89d3dec572510</id>
<content type='text'>
Fix https://github.com/neovim/neovim/issues/8722</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix https://github.com/neovim/neovim/issues/8722</pre>
</div>
</content>
</entry>
</feed>
