+clipboard_working
should check either.+feature
to the listhttps://github.com/vim/vim/pull/18541
(2 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
@64-bitman pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.
@64-bitman pushed 1 commit.
You are receiving this because you are subscribed to this thread.
@chrisbra commented on this pull request.
Thanks, can you please add some tests to it? I assume clipboard_plus_avail
should be false on Windows, so it should be easily testable.
> @@ -379,6 +379,13 @@ T *+cindent* 'cindent', C indenting; Always enabled N *+clientserver* Unix and Win32: Remote invocation |clientserver| *+clipboard* |clipboard| support compiled-in *+clipboard_working* |clipboard| support compiled-in and working + *+clipboard_plus* |clipboard| support compiled-in and plus register exists⬇️ Suggested change
- *+clipboard_plus* |clipboard| support compiled-in and plus register exists + *+clipboard_plus* |clipboard| support compiled-in and separate plus register exists
> @@ -379,6 +379,13 @@ T *+cindent* 'cindent', C indenting; Always enabled N *+clientserver* Unix and Win32: Remote invocation |clientserver| *+clipboard* |clipboard| support compiled-in *+clipboard_working* |clipboard| support compiled-in and working + *+clipboard_plus* |clipboard| support compiled-in and plus register exists + *+clipboard_star_avail* + |clipboard| support compiled-in and star "*" register + available + *+clipboard_plus_avail* + |clipboard| support compiled-in and plus "+" register⬇️ Suggested change
- |clipboard| support compiled-in and plus "+" register + |clipboard| support compiled-in and separate plus "+" register
> @@ -379,6 +379,13 @@ T *+cindent* 'cindent', C indenting; Always enabled N *+clientserver* Unix and Win32: Remote invocation |clientserver| *+clipboard* |clipboard| support compiled-in *+clipboard_working* |clipboard| support compiled-in and working + *+clipboard_plus* |clipboard| support compiled-in and plus register exists
Also, do we need a separate clipboard_star
test? It seems inconsistent to only have clipboard_plus
. Or maybe we can drop this, since it can be inferred from clipboard_working
and clipboard_plus_available
?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
@64-bitman commented on this pull request.
> @@ -379,6 +379,13 @@ T *+cindent* 'cindent', C indenting; Always enabled N *+clientserver* Unix and Win32: Remote invocation |clientserver| *+clipboard* |clipboard| support compiled-in *+clipboard_working* |clipboard| support compiled-in and working + *+clipboard_plus* |clipboard| support compiled-in and plus register exists
Also, do we need a separate
clipboard_star
test? It seems inconsistent to only haveclipboard_plus
. Or maybe we can drop this, since it can be inferred fromclipboard_working
andclipboard_plus_available
?
I suppose we can remove the clipboard_star
feature, seems unnecessary since its always included.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Thanks, can you please add some tests to it? I assume
clipboard_plus_avail
should be false on Windows, so it should be easily testable.
Do you know which test file it should be placed in? Thanks
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
Hm, I thought we have a test_clipboard
, but it seems I misremembered. So either test_eval_stuff
for the has("...")
tests or test_registers()
or possibly test_quotestar
even so it doesn't match the plus register.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
@chrisbra commented on this pull request.
> @@ -379,6 +379,13 @@ T *+cindent* 'cindent', C indenting; Always enabled N *+clientserver* Unix and Win32: Remote invocation |clientserver| *+clipboard* |clipboard| support compiled-in *+clipboard_working* |clipboard| support compiled-in and working + *+clipboard_plus* |clipboard| support compiled-in and plus register exists
True. But I guess we don't really the clipboard_plus
feature test, because the real thing that one wants to test is actually clipboard_plus_avail
, right? There is no reason why anybody would check for clipboard_plus
but not for clipboard_plus_avail
or is there?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
@64-bitman commented on this pull request.
> @@ -379,6 +379,13 @@ T *+cindent* 'cindent', C indenting; Always enabled N *+clientserver* Unix and Win32: Remote invocation |clientserver| *+clipboard* |clipboard| support compiled-in *+clipboard_working* |clipboard| support compiled-in and working + *+clipboard_plus* |clipboard| support compiled-in and plus register exists
clipboard_plus_avail
checks the available
member of the Clipboard_T
struct, while clipboard_plus
is just true when clip_plus != clip_star
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
@chrisbra commented on this pull request.
> @@ -379,6 +379,13 @@ T *+cindent* 'cindent', C indenting; Always enabled N *+clientserver* Unix and Win32: Remote invocation |clientserver| *+clipboard* |clipboard| support compiled-in *+clipboard_working* |clipboard| support compiled-in and working + *+clipboard_plus* |clipboard| support compiled-in and plus register exists
Yeah, but does it make sense? Why would anybody check for clipboard_plus
and not for clipboad_plus_avail
? I think any user would be interested in a working plus
clipboard.
In other words, let's just remove the clipboard_plus
feature please. That would also remove the inconsistency of having a clipboard_plus
but not clipboard_star
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.