simplify and optimize buffer line handling
simplify and optimize buffer line handling

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