Code cleanup and slight refactor in NCursesUI menu code
Code cleanup and slight refactor in NCursesUI menu code

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