josa42 / coc-sh

SH language server extension using bash-language-server for coc.nvim.
MIT License
205 stars 4 forks source link

`-` character isn't removed when selecting autocompletion command's option from the drop-down list #68

Open Andrew15-5 opened 1 year ago

Andrew15-5 commented 1 year ago

I was surprised when I found out about command's options autocompletions, but I quickly stopped using it because the - or -- isn't removed when selecting any option from the drop-down list. Here are some screenshot to demonstrate the issue (I use Fira Code with ligatures enabled):

image image

Triggered autocompletion with <C-Space> after writing man: image

Re-triggered autocompletion after writing man -: image

Selected long option (2 -) but in total there are 3 - (my 1st one wasn't removed): image

Selected short option (1 -) but in total there are 2 - (my 1st one wasn't removed): image

Re-triggered autocompletion after writing man --: image

Selected long option (2 -) but in total there are 4 - (my 1st two weren't removed): image