diff options
| author | Randy Palamar <palamar@ualberta.ca> | 2023-05-25 16:49:47 -0600 |
|---|---|---|
| committer | Randy Palamar <palamar@ualberta.ca> | 2023-06-09 08:49:42 -0600 |
| commit | f64a644294f268f8386c61faec6242b9ca0787f8 (patch) | |
| tree | 862b8d730d874123f32e3d79507f1f5e380a6488 | |
| parent | e391d16c8813b5abe1695f7e844ee220baa00dd8 (diff) | |
| download | vis-f64a644294f268f8386c61faec6242b9ca0787f8.tar.gz vis-f64a644294f268f8386c61faec6242b9ca0787f8.tar.xz | |
vis-clipboard: don't fail when sel is primary on unsupported platforms
this is mostly useful for the internal vis usage and makes both `*` and
`+` registers work on macOS/cygwin.
fixes: #1067
| -rw-r--r-- | man/vis-clipboard.1 | 3 | ||||
| -rwxr-xr-x | vis-clipboard | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/man/vis-clipboard.1 b/man/vis-clipboard.1 index 8ed454c..7bd734b 100644 --- a/man/vis-clipboard.1 +++ b/man/vis-clipboard.1 @@ -53,7 +53,8 @@ In this mode, reads the content of the system clipboard, and writes it to standard output. .It Fl -selection Ar selection -specify which selection to use, options are "primary" or "clipboard" +specify which selection to use, options are "primary" or +"clipboard". Silently ignored on platforms with a single clipboard. .El . .Sh ENVIRONMENT diff --git a/vis-clipboard b/vis-clipboard index bb993e7..fd9cf7b 100755 --- a/vis-clipboard +++ b/vis-clipboard @@ -37,10 +37,6 @@ vc_determine_command() { done fi - if [ "$sel" = "primary" ]; then - vc_fatal "clipboard primary selection is not supported on your platform" - fi - if command -v pbcopy >/dev/null 2>&1; then echo 'mac' return 0 |
