martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.19k stars 259 forks source link

vis-clipboard: don't fail when sel is primary on unsupported platforms #1101

Closed rnpnr closed 1 year ago

rnpnr commented 1 year ago

this is mostly useful for the internal vis usage and makes both * and + ~buffers~ registers work on macOS/cygwin.

fixes: #1067

Note: I can't test this and I want others opinions on it. I don't even think the deleted check is correct right now since who is to say what the user meant when they specified --selection on macOS/cygwin.

Edit: I meant registers not buffers