Slight refactor in selection update code
Slight refactor in selection update code

mawww/kakoune,casimir/kakoune,Somasis/kakoune,ekie/kakoune,flavius/kakoune,lenormf/kakoune,casimir/kakoune,jkonecny12/kakoune,lenormf/kakoune,jkonecny12/kakoune,alexherbo2/kakoune,lenormf/kakoune,lenormf/kakoune,casimir/kakoune,jjthrash/kakoune,Somasis/kakoune,jjthrash/kakoune,occivink/kakoune,jjthrash/kakoune,mawww/kakoune,occivink/kakoune,alexherbo2/kakoune,jjthrash/kakoune,ekie/kakoune,alexherbo2/kakoune,danr/kakoune,Somasis/kakoune,occivink/kakoune,alexherbo2/kakoune,danr/kakoune,ekie/kakoune,jkonecny12/kakoune,mawww/kakoune,danr/kakoune,flavius/kakoune,casimir/kakoune,occivink/kakoune,Somasis/kakoune,jkonecny12/kakoune,flavius/kakoune,flavius/kakoune,danr/kakoune,mawww/kakoune,ekie/kakoune