<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/src/nvim/testdir/test_prompt_buffer.vim, branch userregs_2</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>test: move oldtests to test directory (#22536)</title>
<updated>2023-03-07T03:13:04+00:00</updated>
<author>
<name>dundargoc</name>
<email>33953936+dundargoc@users.noreply.github.com</email>
</author>
<published>2023-03-07T03:13:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=af23d173883f47fd02a9a380c719e4428370b484'/>
<id>af23d173883f47fd02a9a380c719e4428370b484</id>
<content type='text'>
The new oldtest directory is in test/old/testdir. The reason for this is
that many tests have hardcoded the parent directory name to be
'testdir'.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The new oldtest directory is in test/old/testdir. The reason for this is
that many tests have hardcoded the parent directory name to be
'testdir'.</pre>
</div>
</content>
</entry>
<entry>
<title>test(legacy/prompt_buffer_spec): align script with oldtest more (#22354)</title>
<updated>2023-02-21T09:43:53+00:00</updated>
<author>
<name>zeertzjq</name>
<email>zeertzjq@outlook.com</email>
</author>
<published>2023-02-21T09:43:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=fec1181ecde75de1754f1d27a7ba7cbf2b9f43d6'/>
<id>fec1181ecde75de1754f1d27a7ba7cbf2b9f43d6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:8.2.2973: fix for recovery and diff mode not tested</title>
<updated>2022-11-17T14:59:33+00:00</updated>
<author>
<name>zeertzjq</name>
<email>zeertzjq@outlook.com</email>
</author>
<published>2022-11-17T14:57:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=f12a45c45eab75578fa18b1c6395f80b8749f7ef'/>
<id>f12a45c45eab75578fa18b1c6395f80b8749f7ef</id>
<content type='text'>
Problem:    Fix for recovery and diff mode not tested.
Solution:   Add a few more tests. (Yegappan Lakshmanan, closes vim/vim#8352)

https://github.com/vim/vim/commit/3044324e8dccd470bd854cf7d9457232cc9c220e

Co-authored-by: Yegappan Lakshmanan &lt;yegappan@yahoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    Fix for recovery and diff mode not tested.
Solution:   Add a few more tests. (Yegappan Lakshmanan, closes vim/vim#8352)

https://github.com/vim/vim/commit/3044324e8dccd470bd854cf7d9457232cc9c220e

Co-authored-by: Yegappan Lakshmanan &lt;yegappan@yahoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:9.0.0678: using exclamation marks on :function (#20518)</title>
<updated>2022-10-06T23:06:38+00:00</updated>
<author>
<name>zeertzjq</name>
<email>zeertzjq@outlook.com</email>
</author>
<published>2022-10-06T23:06:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=bcef006da6333e9e9a91ed862f8c1d7a0022f094'/>
<id>bcef006da6333e9e9a91ed862f8c1d7a0022f094</id>
<content type='text'>
Problem:    Using exclamation marks on :function.
Solution:   Use :func and :endfunc as usual.
https://github.com/vim/vim/commit/97f0eb169bf805c372b13c6bc9a03da2e75e3354

Add a missing change from patch 8.1.1875.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    Using exclamation marks on :function.
Solution:   Use :func and :endfunc as usual.
https://github.com/vim/vim/commit/97f0eb169bf805c372b13c6bc9a03da2e75e3354

Add a missing change from patch 8.1.1875.</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:8.2.3671: restarting Insert mode in prompt buffer too often</title>
<updated>2021-12-07T11:34:28+00:00</updated>
<author>
<name>Sean Dewar</name>
<email>seandewar@users.noreply.github.com</email>
</author>
<published>2021-11-25T22:53:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=361f548437a0a9b620db620356fdd405d24a7b34'/>
<id>361f548437a0a9b620db620356fdd405d24a7b34</id>
<content type='text'>
Problem:    Restarting Insert mode in prompt buffer too often when a callback
            switches windows and comes back. (Sean Dewar)
Solution:   Do not set "restart_edit" when already in Insert mode.
https://github.com/vim/vim/commit/34c20ff85b87be587ea5d0398812441b502ee6a5

As Test_prompt_switch_windows is skipped, implement it in prompt_buffer_spec.

Replace the 50ms term_wait calls with poke_eventloop (test seems to work anyway
without them, so maybe they're not required?)

The new test does include a duplicate screen test that may generate a "screen
test succeeded immediately" warning, but this is done to match the Vim test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    Restarting Insert mode in prompt buffer too often when a callback
            switches windows and comes back. (Sean Dewar)
Solution:   Do not set "restart_edit" when already in Insert mode.
https://github.com/vim/vim/commit/34c20ff85b87be587ea5d0398812441b502ee6a5

As Test_prompt_switch_windows is skipped, implement it in prompt_buffer_spec.

Replace the 50ms term_wait calls with poke_eventloop (test seems to work anyway
without them, so maybe they're not required?)

The new test does include a duplicate screen test that may generate a "screen
test succeeded immediately" warning, but this is done to match the Vim test.
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:8.2.2014: using CTRL-O in a prompt buffer moves cursor to start</title>
<updated>2021-12-07T11:34:27+00:00</updated>
<author>
<name>Sean Dewar</name>
<email>seandewar@users.noreply.github.com</email>
</author>
<published>2021-11-07T13:12:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=d6258a9bad10e97d2582a102750e0e931bb9321a'/>
<id>d6258a9bad10e97d2582a102750e0e931bb9321a</id>
<content type='text'>
Problem:    Using CTRL-O in a prompt buffer moves cursor to start of the line.
Solution:   Do not move the cursor when restarting edit. (closes vim/vim#7330)
https://github.com/vim/vim/commit/ee8b787bcd15f63a938243770065e704c9b5c85f

Test_prompt_editing is skipped, so edit the Lua test in prompt_buffer_spec.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    Using CTRL-O in a prompt buffer moves cursor to start of the line.
Solution:   Do not move the cursor when restarting edit. (closes vim/vim#7330)
https://github.com/vim/vim/commit/ee8b787bcd15f63a938243770065e704c9b5c85f

Test_prompt_editing is skipped, so edit the Lua test in prompt_buffer_spec.
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:8.2.1976: cannot backspace in prompt buffer after using cursor-left</title>
<updated>2021-12-07T11:34:27+00:00</updated>
<author>
<name>Sean Dewar</name>
<email>seandewar@users.noreply.github.com</email>
</author>
<published>2021-11-07T21:14:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=c2d0a1041e215634be316c4e824c1b1b2f242e76'/>
<id>c2d0a1041e215634be316c4e824c1b1b2f242e76</id>
<content type='text'>
Problem:    Cannot backspace in prompt buffer after using cursor-left. (Maxim
            Kim)
Solution:   Ignore "arrow_used" in a prompt buffer. (closes vim/vim#7281)
https://github.com/vim/vim/commit/6f6244855fbce5aaa718cd5001a29aac3c5c15d6

cmdchar_todo wasn't adapted properly for Nvim's state system, which caused it to
be a dead store and such was removed in #11900.

Re-introduce cmdchar_todo properly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    Cannot backspace in prompt buffer after using cursor-left. (Maxim
            Kim)
Solution:   Ignore "arrow_used" in a prompt buffer. (closes vim/vim#7281)
https://github.com/vim/vim/commit/6f6244855fbce5aaa718cd5001a29aac3c5c15d6

cmdchar_todo wasn't adapted properly for Nvim's state system, which caused it to
be a dead store and such was removed in #11900.

Re-introduce cmdchar_todo properly.
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:8.2.1781: writing to prompt buffer interferes with insert mode</title>
<updated>2021-12-07T11:34:27+00:00</updated>
<author>
<name>Sean Dewar</name>
<email>seandewar@users.noreply.github.com</email>
</author>
<published>2021-11-07T21:28:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=38cd91de5f0f89daccdcbac16508af830d8001d7'/>
<id>38cd91de5f0f89daccdcbac16508af830d8001d7</id>
<content type='text'>
Problem:    Writing to prompt buffer interferes with insert mode.
Solution:   Use win_enter() instead of just setting "curwin". (Ben Jackson,
            closes vim/vim#7035)
https://github.com/vim/vim/commit/4537bcc88956f86267c25edf8008e0dbde598652

Vim test will be skipped, so add a Lua test.
The problem boils down to the use of aucmd_restbuf in a callback, so just test
that (via nvim_buf_set_lines).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    Writing to prompt buffer interferes with insert mode.
Solution:   Use win_enter() instead of just setting "curwin". (Ben Jackson,
            closes vim/vim#7035)
https://github.com/vim/vim/commit/4537bcc88956f86267c25edf8008e0dbde598652

Vim test will be skipped, so add a Lua test.
The problem boils down to the use of aucmd_restbuf in a callback, so just test
that (via nvim_buf_set_lines).
</pre>
</div>
</content>
</entry>
<entry>
<title>vim-patch:8.1.0035: not easy to switch between prompt buffer and other windows</title>
<updated>2021-12-07T11:34:24+00:00</updated>
<author>
<name>Sean Dewar</name>
<email>seandewar@users.noreply.github.com</email>
</author>
<published>2021-10-03T12:57:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=28134f4e78819c2bbf0344326b9d44f21eb0d736'/>
<id>28134f4e78819c2bbf0344326b9d44f21eb0d736</id>
<content type='text'>
Problem:    Not easy to switch between prompt buffer and other windows.
Solution:   Accept CTRL-W commands in Insert mode.  Start and stop Insert mode
            as one would expect.
https://github.com/vim/vim/commit/6d41c78e353b630bc1a72cbff9160311d2a81e8c

Cherry-pick channel.txt change from:
https://github.com/vim/vim/commit/d2f3a8b8787333abf2300d38836b196955f10c00

b_prompt_insert was already ported.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:    Not easy to switch between prompt buffer and other windows.
Solution:   Accept CTRL-W commands in Insert mode.  Start and stop Insert mode
            as one would expect.
https://github.com/vim/vim/commit/6d41c78e353b630bc1a72cbff9160311d2a81e8c

Cherry-pick channel.txt change from:
https://github.com/vim/vim/commit/d2f3a8b8787333abf2300d38836b196955f10c00

b_prompt_insert was already ported.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(eval/method): add missing method support for existing built-ins</title>
<updated>2021-11-26T18:53:12+00:00</updated>
<author>
<name>Sean Dewar</name>
<email>seandewar@users.noreply.github.com</email>
</author>
<published>2021-11-01T22:15:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=752ca2cb9f61b4dc523552d4123729b9b26a3409'/>
<id>752ca2cb9f61b4dc523552d4123729b9b26a3409</id>
<content type='text'>
These functions were ported with the vim-patch token, but didn't actually port
the method call support that was in their patches (method call syntax wasn't
ported yet).

Add the missing method call support and latest docs for:
 - assert_nobeep:
   https://github.com/vim/vim/commit/5b8cabfef7c3707f3e53e13844d90e5a217e1e84
 - buffer_name, buffer_number: (obsolete)
   https://github.com/vim/vim/commit/a8eee21e75324d199acb1663cb5009e03014a13a
 - charidx:
   https://github.com/vim/vim/commit/17793ef23aae0bc94539390ccfe5e63b0ad39ff2
 - flatten:
   https://github.com/vim/vim/commit/077a1e670ad69ef4cefc22103ca6635bd269e764
 - prompt_getprompt:
   https://github.com/vim/vim/commit/077cc7aa0e0c431e97795612374fe17fe7c88803
 - searchcount:
   https://github.com/vim/vim/commit/e8f5ec0d30b629d7166f0ad03434065d8bc822df
 - strptime:
   https://github.com/vim/vim/commit/10455d43fef041309ce0613fa792c635dd71e3a8
 - win_gettype:
   https://github.com/vim/vim/commit/00f3b4e007af07870168bf044cecc9d544483953
 - win_splitmove:
   https://github.com/vim/vim/commit/d20dcb3d011da6111153109f6e46fbd5c7fe9fb6

Also fix assert_beeps, assert_nobeep and getenv to accept exactly one argument.
Previously, they could erroneously accept one or more.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These functions were ported with the vim-patch token, but didn't actually port
the method call support that was in their patches (method call syntax wasn't
ported yet).

Add the missing method call support and latest docs for:
 - assert_nobeep:
   https://github.com/vim/vim/commit/5b8cabfef7c3707f3e53e13844d90e5a217e1e84
 - buffer_name, buffer_number: (obsolete)
   https://github.com/vim/vim/commit/a8eee21e75324d199acb1663cb5009e03014a13a
 - charidx:
   https://github.com/vim/vim/commit/17793ef23aae0bc94539390ccfe5e63b0ad39ff2
 - flatten:
   https://github.com/vim/vim/commit/077a1e670ad69ef4cefc22103ca6635bd269e764
 - prompt_getprompt:
   https://github.com/vim/vim/commit/077cc7aa0e0c431e97795612374fe17fe7c88803
 - searchcount:
   https://github.com/vim/vim/commit/e8f5ec0d30b629d7166f0ad03434065d8bc822df
 - strptime:
   https://github.com/vim/vim/commit/10455d43fef041309ce0613fa792c635dd71e3a8
 - win_gettype:
   https://github.com/vim/vim/commit/00f3b4e007af07870168bf044cecc9d544483953
 - win_splitmove:
   https://github.com/vim/vim/commit/d20dcb3d011da6111153109f6e46fbd5c7fe9fb6

Also fix assert_beeps, assert_nobeep and getenv to accept exactly one argument.
Previously, they could erroneously accept one or more.
</pre>
</div>
</content>
</entry>
</feed>
