Fix shell context capture that was accessing dead parameters
Fix shell context capture that was accessing dead parameters

Fixes #1156

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