Slight code cleanup in prompt history handling
Slight code cleanup in prompt history handling

danr/kakoune,alexherbo2/kakoune,alexherbo2/kakoune,Somasis/kakoune,jkonecny12/kakoune,jkonecny12/kakoune,lenormf/kakoune,danr/kakoune,lenormf/kakoune,jkonecny12/kakoune,Somasis/kakoune,danr/kakoune,occivink/kakoune,lenormf/kakoune,occivink/kakoune,alexherbo2/kakoune,casimir/kakoune,mawww/kakoune,Somasis/kakoune,mawww/kakoune,lenormf/kakoune,Somasis/kakoune,casimir/kakoune,casimir/kakoune,jkonecny12/kakoune,mawww/kakoune,occivink/kakoune,danr/kakoune,casimir/kakoune,occivink/kakoune,alexherbo2/kakoune,mawww/kakoune