<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/test/functional/ex_cmds, branch v0.1.7</title>
<subtitle>Neovim fork with Rahm's personal hacks.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/'/>
<entry>
<title>build: Target luacheck HEAD.</title>
<updated>2016-11-16T23:55:39+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2016-11-16T23:33:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=44e6ee930fff5bf42178e5555b4a7c3467cb66c8'/>
<id>44e6ee930fff5bf42178e5555b4a7c3467cb66c8</id>
<content type='text'>
https://github.com/mpeterv/luacheck/pull/81#issuecomment-261099606

&gt; If you really want to use bleeding-edge version you should get the
&gt; rockspec from master branch, not a fixed commit ...
&gt; The correct way to install from a specific commit is cloning that
&gt; commit and running "luarocks make" from project directory. The reason
&gt; is that running "install" or "build" on an scm rockspec fetches
&gt; sources from master but uses build description from the rockspec
&gt; itself, which may be outdated.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/mpeterv/luacheck/pull/81#issuecomment-261099606

&gt; If you really want to use bleeding-edge version you should get the
&gt; rockspec from master branch, not a fixed commit ...
&gt; The correct way to install from a specific commit is cloning that
&gt; commit and running "luarocks make" from project directory. The reason
&gt; is that running "install" or "build" on an scm rockspec fetches
&gt; sources from master but uses build description from the rockspec
&gt; itself, which may be outdated.
</pre>
</div>
</content>
</entry>
<entry>
<title>encoding: update tests</title>
<updated>2016-11-05T13:49:24+00:00</updated>
<author>
<name>Björn Linse</name>
<email>bjorn.linse@gmail.com</email>
</author>
<published>2015-09-14T11:10:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=b3ece5c81c3c50cfd3fc0df165460be4ffd97723'/>
<id>b3ece5c81c3c50cfd3fc0df165460be4ffd97723</id>
<content type='text'>
Change shada reencoding tests to check for
correct handling of UTF-8 and binary strings.

Delete enc=latin1 json tests.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change shada reencoding tests to check for
correct handling of UTF-8 and binary strings.

Delete enc=latin1 json tests.
</pre>
</div>
</content>
</entry>
<entry>
<title>ex_global: Catch CTRL-C even if it is mapped.</title>
<updated>2016-10-30T12:10:29+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2016-10-29T15:28:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=7cd204dbfa9beb6e59c82d49b029704b9edd4cdb'/>
<id>7cd204dbfa9beb6e59c82d49b029704b9edd4cdb</id>
<content type='text'>
Problem: If CTRL-C is mapped, it does not interrupt :global output.
Solution: clear `mapped_ctrl_c` during :global.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem: If CTRL-C is mapped, it does not interrupt :global output.
Solution: clear `mapped_ctrl_c` during :global.
</pre>
</div>
</content>
</entry>
<entry>
<title>os_nodetype: open fd with O_NONBLOCK (#5515)</title>
<updated>2016-10-21T20:03:01+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2016-10-21T20:03:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=1ff162c0d99c67043e8b10704e2426192e4f2abf'/>
<id>1ff162c0d99c67043e8b10704e2426192e4f2abf</id>
<content type='text'>
Closes #5267

Helped-by: oni-link &lt;knil.ino@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #5267

Helped-by: oni-link &lt;knil.ino@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>system('foo &amp;', 'bar'): Show error, don't crash.</title>
<updated>2016-10-18T23:39:05+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2016-10-18T12:39:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=9706664b8827614817a43f3a4ac4b6ae8463a906'/>
<id>9706664b8827614817a43f3a4ac4b6ae8463a906</id>
<content type='text'>
Closes #3529
Closes #5241

In Vim,
    :echo system('cat - &amp;', 'foo')
works because for both system() and :! Vim writes input to a temp file and uses
shell syntax to redirect the file to the backgrounded `cat` (get_cmd_output()
.. make_filter_cmd()).

In Nvim,
    :echo system('cat - &amp;', 'foo')
fails because we write the input directly via pipes (shell.c:do_os_system()),
but (per POSIX[1]) backgrounded process input stream is redirected from
/dev/null (unless overridden by shell redirection; supported only by some shells
[2]), so our writes are ignored, the process exits quickly, and if we are
writing data larger than the buffer size we'll see EPIPE.

This still works:
    :%w !tee &gt; foo1358.txt &amp;
but this does not:
    :%w !tee foo1358.txt &amp;
though it *should* (why doesn't it?) because we still do the temp file dance
in do_bang() .. do_filter().

[1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_03_02
[2] http://unix.stackexchange.com/a/71218
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #3529
Closes #5241

In Vim,
    :echo system('cat - &amp;', 'foo')
works because for both system() and :! Vim writes input to a temp file and uses
shell syntax to redirect the file to the backgrounded `cat` (get_cmd_output()
.. make_filter_cmd()).

In Nvim,
    :echo system('cat - &amp;', 'foo')
fails because we write the input directly via pipes (shell.c:do_os_system()),
but (per POSIX[1]) backgrounded process input stream is redirected from
/dev/null (unless overridden by shell redirection; supported only by some shells
[2]), so our writes are ignored, the process exits quickly, and if we are
writing data larger than the buffer size we'll see EPIPE.

This still works:
    :%w !tee &gt; foo1358.txt &amp;
but this does not:
    :%w !tee foo1358.txt &amp;
though it *should* (why doesn't it?) because we still do the temp file dance
in do_bang() .. do_filter().

[1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_03_02
[2] http://unix.stackexchange.com/a/71218
</pre>
</div>
</content>
</entry>
<entry>
<title>test: system(): backgrounded shell command</title>
<updated>2016-10-18T23:01:27+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2016-10-17T21:56:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=16da3a6fe01de74eaebfd4750dabe27b3b7ab068'/>
<id>16da3a6fe01de74eaebfd4750dabe27b3b7ab068</id>
<content type='text'>
These tests are essentially affirming a regression vs Vim. In Vim,
    :echo system('cat - &amp;', 'foo')
returns "foo", because Vim internally wraps the command with shell-specific
syntax to redirect the streams from /dev/null[1].

That can't work in Nvim because we use pipes directly (instead of temp files)
and don't wrap the command with shell-specific redirection syntax.

References #3529
References #5241

[1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_03_02
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These tests are essentially affirming a regression vs Vim. In Vim,
    :echo system('cat - &amp;', 'foo')
returns "foo", because Vim internally wraps the command with shell-specific
syntax to redirect the streams from /dev/null[1].

That can't work in Nvim because we use pipes directly (instead of temp files)
and don't wrap the command with shell-specific redirection syntax.

References #3529
References #5241

[1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_03_02
</pre>
</div>
</content>
</entry>
<entry>
<title>main.c: "BufReadCmd term://": Skip existing terminal.</title>
<updated>2016-10-12T19:37:08+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2016-10-09T14:00:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=6b7faf22f4c2a7cdfeae5a8bd72674252a7740d7'/>
<id>6b7faf22f4c2a7cdfeae5a8bd72674252a7740d7</id>
<content type='text'>
Check `exists('b:term_title')` to avoid the BufReadCmd for already-initialized
:terminal buffers.

Move the test for `:argadd`.
Add a test for `:edit&lt;CR&gt;`.
Tweak comments and code style.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Check `exists('b:term_title')` to avoid the BufReadCmd for already-initialized
:terminal buffers.

Move the test for `:argadd`.
Add a test for `:edit&lt;CR&gt;`.
Tweak comments and code style.
</pre>
</div>
</content>
</entry>
<entry>
<title>CI: test: Avoid QuickBuild hang. (#5330)</title>
<updated>2016-09-12T01:18:48+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2016-09-12T01:18:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=b801291becd19cd462d683dd3f14b71572c02621'/>
<id>b801291becd19cd462d683dd3f14b71572c02621</id>
<content type='text'>
Delete the CWD using nvim instead of the external lua/test runner process.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Delete the CWD using nvim instead of the external lua/test runner process.</pre>
</div>
</content>
</entry>
<entry>
<title>getcwd(): Return empty string if CWD is invalid. #5292</title>
<updated>2016-09-04T12:01:31+00:00</updated>
<author>
<name>HiPhish</name>
<email>hiphish@Aleksandars-iMac.local</email>
</author>
<published>2016-09-04T10:28:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=cd321b7d0fb161b77cd7b25da7f9a4721cfb0110'/>
<id>cd321b7d0fb161b77cd7b25da7f9a4721cfb0110</id>
<content type='text'>
Closes #5291

Restores behaviour identical to Vim. If the user calls the VimScript
function 'getcwd()' and the working directory cannot be found (for
example because the directory has been deleted since the last time it
was used) an empty string needs to be returned instead of throwing an
error.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #5291

Restores behaviour identical to Vim. If the user calls the VimScript
function 'getcwd()' and the working directory cannot be found (for
example because the directory has been deleted since the last time it
was used) an empty string needs to be returned instead of throwing an
error.
</pre>
</div>
</content>
</entry>
<entry>
<title>tchdir: New tab should inherit CWD. (#5227)</title>
<updated>2016-09-04T01:40:01+00:00</updated>
<author>
<name>Alejandro Sanchez</name>
<email>asflin@gmx.de</email>
</author>
<published>2016-09-04T01:40:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=626065d385c4f7a06d2aa3dedf2fbb8fa68bfb48'/>
<id>626065d385c4f7a06d2aa3dedf2fbb8fa68bfb48</id>
<content type='text'>
When a new tabpage gets created it will copy the local working directory
of the previous one, if there is any.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When a new tabpage gets created it will copy the local working directory
of the previous one, if there is any.</pre>
</div>
</content>
</entry>
</feed>
