Skip to content

Commit

Permalink
fix(dialog): consider visual mode for input
Browse files Browse the repository at this point in the history
  • Loading branch information
chemzqm committed Sep 21, 2023
1 parent d38c874 commit 4b20395
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autoload/coc/dialog.vim
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ function! coc#dialog#_create_prompt_nvim(title, default, opts) abort
call feedkeys('A', 'int')
elseif mode ==# 'i'
call feedkeys("\<end>", 'int')
else
call feedkeys("\<esc>A", 'int')
endif
let placeHolder = get(a:opts, 'placeHolder', '')
if empty(a:default) && !empty(placeHolder) && has('nvim-0.5.0')
Expand Down

0 comments on commit 4b20395

Please sign in to comment.