Fix select_next_match that would select the end of the buffer in some circumstances
Fix select_next_match that would select the end of the buffer in some circumstances

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