go-playground icon indicating copy to clipboard operation
go-playground copied to clipboard

fix: go-playground-upload not working in playground snippet buffers

Open jimeh opened this issue 1 year ago • 0 comments

This fixes the condition in the go-playground-upload function, so it runs go-play-buffer within go-playground snippet file buffers only. Previously it would run it in any buffer, except snippet buffers.

I also removed the cursor movement and insertion of the result from go-play-upload, as default behavior of go-play-buffer and go-play-region is to place the URL on the killring, and can be customized setting the go-play-browse-function variable.

jimeh avatar Aug 25 '22 21:08 jimeh