Skip to content

Commit 382d221

Browse files
committed
fix(helper/input): Catch interrupt on neovim
1 parent 488361c commit 382d221

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

denops_std/helper/input.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ async function ensurePrerequisites(denops: Denops): Promise<string> {
5858
if a:completion isnot# v:null
5959
let options['completion'] = a:completion
6060
endif
61-
let result = input(options)
61+
try
62+
let result = input(options)
63+
catch /^Vim:Interrupt$/
64+
return v:null
65+
endtry
6266
if result ==# s:escape_token_${suffix}
6367
return v:null
6468
endif

0 commit comments

Comments
 (0)