yi-editor / yi

The Haskell-Scriptable Editor
GNU General Public License v2.0
1.51k stars 201 forks source link

Add disable-hclip function #1089

Open junjihashimoto opened 6 years ago

junjihashimoto commented 6 years ago

When environment is linux's terminal without xwindow, hclip does not work, and killring does not work too. Because DISPLAY variable is unset.

This PR adds disable-hclip-function and uses local-variable instead of hclip.

junjihashimoto commented 6 years ago

@noughtmare and @Fuuzetsu, Thank you for comments and reviewing. Changed get/setClipboard's variable from String to YiString. And add some notes for IORef variable.