fix prompt completion handling misbehaving with history
fix prompt completion handling misbehaving with history

mawww/kakoune,alexherbo2/kakoune,danr/kakoune,xificurC/kakoune,Asenar/kakoune,xificurC/kakoune,elegios/kakoune,jjthrash/kakoune,lenormf/kakoune,casimir/kakoune,danr/kakoune,rstacruz/kakoune,xificurC/kakoune,Somasis/kakoune,Somasis/kakoune,flavius/kakoune,flavius/kakoune,xificurC/kakoune,zakgreant/kakoune,ekie/kakoune,ekie/kakoune,alexherbo2/kakoune,zakgreant/kakoune,jjthrash/kakoune,danielma/kakoune,danielma/kakoune,casimir/kakoune,elegios/kakoune,alpha123/kakoune,alexherbo2/kakoune,elegios/kakoune,jkonecny12/kakoune,alpha123/kakoune,ekie/kakoune,lenormf/kakoune,Asenar/kakoune,danielma/kakoune,ekie/kakoune,occivink/kakoune,mawww/kakoune,rstacruz/kakoune,alpha123/kakoune,casimir/kakoune,casimir/kakoune,rstacruz/kakoune,Somasis/kakoune,lenormf/kakoune,lenormf/kakoune,Somasis/kakoune,alexherbo2/kakoune,Asenar/kakoune,alpha123/kakoune,jkonecny12/kakoune,mawww/kakoune,danr/kakoune,jkonecny12/kakoune,zakgreant/kakoune,Asenar/kakoune,jjthrash/kakoune,danr/kakoune,elegios/kakoune,occivink/kakoune,mawww/kakoune,flavius/kakoune,jjthrash/kakoune,rstacruz/kakoune,occivink/kakoune,danielma/kakoune,zakgreant/kakoune,jkonecny12/kakoune,occivink/kakoune,flavius/kakoune