[Question] Problem with inputlist
- Dominant language
- Vim Script
- Stars
- 599
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm new with vader and may be someone can help me.
I'd like to test the following function:
```
function! Function()
let items = ["Select something:", "1. Red tablet", "2. Blue tablet"]
let i = inputlist(items)
put = items[i]
endfunction
```
And wrote the following test case:
```
Do:
:call Function()\
1\
Expect text:
1. Red tablet
```
But the test cannot be finished without pressing `Enter` from keyboard. I get the following message:
```
Select something:
1. Red tablet
2. Blue tablet
Type number and or click with mouse (empty cancels): 1
Press ENTER or type command to continue
```
I got the message with variants and vader choose variant 1 and pressed `Enter` but then vim wrote a new message: ***Press ENTER or type command to continue***. And vim waits some actions from me.
Could you please help me? How can I avoid the vim message?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.