neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit cacb4ceeb44d5a29382b0cb37256a6a711aa7ecc
parent 927dc3c2c49faeb8be94097d5faa0322928059b1
Author: Shadman <shadmansaleh3@gmail.com>
Date:   Fri, 20 Jun 2025 20:07:27 +0600

test(prompt): nvim_paste in prompt buffer #34583


Diffstat:
Mtest/functional/legacy/prompt_buffer_spec.lua | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/test/functional/legacy/prompt_buffer_spec.lua b/test/functional/legacy/prompt_buffer_spec.lua @@ -302,6 +302,21 @@ describe('prompt buffer', function() ]]) end) + it('can put multiline text with nvim_paste', function() + source_script() + api.nvim_paste('line 1\nline 2\nline 3', false, -1) + screen:expect([[ + cmd: line 1 | + line 2 | + line 3^ | + {1:~ }| + {3:[Prompt] [+] }| + other buffer | + {1:~ }|*3 + {5:-- INSERT --} | + ]]) + end) + it('can undo current prompt', function() source_script() -- text editiing alowed in current prompt