aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2021-11-26 03:34:41 +0000
committerSean Dewar <seandewar@users.noreply.github.com>2021-12-07 11:34:28 +0000
commit0f792b284fbb924d46020a31162a7660fa6dc077 (patch)
tree5e33eb3bac0936b078024b34f61b89fb616f05ec
parentd6258a9bad10e97d2582a102750e0e931bb9321a (diff)
downloadrneovim-0f792b284fbb924d46020a31162a7660fa6dc077.tar.gz
rneovim-0f792b284fbb924d46020a31162a7660fa6dc077.tar.bz2
rneovim-0f792b284fbb924d46020a31162a7660fa6dc077.zip
test(prompt_buffer_spec): include changes from v8.1.1984
I already ported v8.1.1984 previously, but hadn't updated prompt_buffer_spec to match test_prompt_buffer (which we have but due to Vim features such as term_sendkeys it's mostly skipped). Required for v8.2.3671.
-rw-r--r--test/functional/legacy/prompt_buffer_spec.lua13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/functional/legacy/prompt_buffer_spec.lua b/test/functional/legacy/prompt_buffer_spec.lua
index 5c077e3f7d..e689c29dfd 100644
--- a/test/functional/legacy/prompt_buffer_spec.lua
+++ b/test/functional/legacy/prompt_buffer_spec.lua
@@ -37,6 +37,7 @@ describe('prompt buffer', function()
feed_command("new")
feed_command("set buftype=prompt")
feed_command("call prompt_setcallback(bufnr(''), function('TextEntered'))")
+ feed_command("eval bufnr('')->prompt_setprompt('cmd: ')")
end)
after_each(function()
@@ -59,10 +60,10 @@ describe('prompt buffer', function()
feed("i")
feed("hello\n")
screen:expect([[
- % hello |
+ cmd: hello |
Command: "hello" |
Result: "hello" |
- % ^ |
+ cmd: ^ |
[Prompt] [+] |
other buffer |
~ |
@@ -101,7 +102,7 @@ describe('prompt buffer', function()
feed("i")
feed("hello<BS><BS>")
screen:expect([[
- % hel^ |
+ cmd: hel^ |
~ |
~ |
~ |
@@ -114,7 +115,7 @@ describe('prompt buffer', function()
]])
feed("<Left><Left><Left><BS>-")
screen:expect([[
- % -^hel |
+ cmd: -^hel |
~ |
~ |
~ |
@@ -127,7 +128,7 @@ describe('prompt buffer', function()
]])
feed("<C-O>lz")
screen:expect([[
- % -hz^el |
+ cmd: -hz^el |
~ |
~ |
~ |
@@ -140,7 +141,7 @@ describe('prompt buffer', function()
]])
feed("<End>x")
screen:expect([[
- % -hzelx^ |
+ cmd: -hzelx^ |
~ |
~ |
~ |