[vim/vim] Revert clipboard changes (PR #18633)

22 views
Skip to first unread message

Foxe Chen

unread,
Oct 25, 2025, 7:42:16 AM (9 days ago) Oct 25
to vim/vim, Subscribed

Reverts commits, addresses pointed out by @ychin:


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/18633

Commit Summary

File Changes

(28 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18633@github.com>

Foxe Chen

unread,
Oct 25, 2025, 7:42:40 AM (9 days ago) Oct 25
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18633/before/1035e8d39c6ec0b66c7e4e2483b3b53c8dd75335/after/c89fdc1e13a06a386e86e703e39926e766888568@github.com>

Foxe Chen

unread,
Oct 25, 2025, 7:46:32 AM (9 days ago) Oct 25
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#18633)

I will create a new PR for the clipboard provider feature using a more sane approach later, see this comment.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18633/c3446584925@github.com>

Foxe Chen

unread,
Oct 25, 2025, 7:50:17 AM (9 days ago) Oct 25
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18633/before/c89fdc1e13a06a386e86e703e39926e766888568/after/a1aa228356d332b8f9a268eeb676088aa9e41a48@github.com>

Foxe Chen

unread,
Oct 25, 2025, 8:14:53 AM (9 days ago) Oct 25
to vim/vim, Subscribed

@64-bitman commented on this pull request.


In runtime/doc/version9.txt:

> @@ -41902,29 +41900,13 @@ Options: ~
 			compositor
 
 Vim Variables: ~
-|v:clipmethod|		The current 'clipmethod'.
-|v:clipproviders|	A dictionary containing clipboard providers
-			information.
-|v:stacktrace|		The most recent caught exception.
-|v:t_enumvalue|		Value of |enumvalue|.

Not sure why there are unrelated stuff here


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18633/review/3379932737@github.com>

Foxe Chen

unread,
Oct 25, 2025, 8:49:07 AM (9 days ago) Oct 25
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18633/before/a1aa228356d332b8f9a268eeb676088aa9e41a48/after/e24d5a0e4eb929b85910379683a54a5e5b8f9011@github.com>

Foxe Chen

unread,
Oct 25, 2025, 8:50:36 AM (9 days ago) Oct 25
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18633/before/e24d5a0e4eb929b85910379683a54a5e5b8f9011/after/8bcf5273ebef85138710165addddf748cec3dace@github.com>

Foxe Chen

unread,
Oct 25, 2025, 8:51:30 AM (9 days ago) Oct 25
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18633/before/8bcf5273ebef85138710165addddf748cec3dace/after/36f564e4755a03fb66a2038972aa88ae30b7c5ab@github.com>

Yee Cheng Chin

unread,
Oct 25, 2025, 5:22:16 PM (9 days ago) Oct 25
to vim/vim, Subscribed
ychin left a comment (vim/vim#18633)

Just for context (since this PR description doesn't explicitly mention it), this is to fix #18600. The recent clipboard changes has completely broken clipboard support in different platforms, e.g. macOS.

I checked out this PR and it does fix the issue. I didn't realize there are so many commits that need to be reverted. In particular, 528196c (v9.1.1704) doesn't seem necessary for this (this is the change that introduced "gui" and "other" options for the clipmethod)? It's up to you guys whether you want to revert it but that commit is older than the others and also not the cause of this breakage. The main offender is v9.1.1857.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18633/c3447776167@github.com>

Yee Cheng Chin

unread,
Oct 25, 2025, 5:25:09 PM (9 days ago) Oct 25
to vim/vim, Subscribed

@ychin commented on this pull request.


In runtime/doc/version9.txt:

> @@ -41902,29 +41900,13 @@ Options: ~
 			compositor
 
 Vim Variables: ~
-|v:clipmethod|		The current 'clipmethod'.
-|v:clipproviders|	A dictionary containing clipboard providers
-			information.
-|v:stacktrace|		The most recent caught exception.
-|v:t_enumvalue|		Value of |enumvalue|.

Seems like maybe @chrisbra was using the opportunity to add some missing docs.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18633/review/3380246348@github.com>

Foxe Chen

unread,
Oct 25, 2025, 6:56:57 PM (9 days ago) Oct 25
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#18633)

Just for context (since this PR description doesn't explicitly mention it), this is to fix #18600. The recent clipboard changes has completely broken clipboard support in different platforms, e.g. macOS.

I checked out this PR and it does fix the issue. I didn't realize there are so many commits that need to be reverted. In particular, 528196c (v9.1.1704) doesn't seem necessary for this (this is the change that introduced "gui" and "other" options for the clipmethod)? It's up to you guys whether you want to revert it but that commit is older than the others and also not the cause of this breakage. The main offender is v9.1.1857.

The "gui" and "other" values were meant for the clipboard provider feature so they aren't needed anymore. Many of these PRs are just small fixes


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18633/c3447848206@github.com>

Christian Brabandt

unread,
Oct 26, 2025, 9:27:04 AM (8 days ago) Oct 26
to vim/vim, Subscribed

@chrisbra commented on this pull request.


In runtime/doc/version9.txt:

> @@ -41902,29 +41900,13 @@ Options: ~
 			compositor
 
 Vim Variables: ~
-|v:clipmethod|		The current 'clipmethod'.
-|v:clipproviders|	A dictionary containing clipboard providers
-			information.
-|v:stacktrace|		The most recent caught exception.
-|v:t_enumvalue|		Value of |enumvalue|.

yes correct


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18633/review/3381095127@github.com>

Christian Brabandt

unread,
Oct 26, 2025, 9:47:29 AM (8 days ago) Oct 26
to vim/vim, Subscribed

Closed #18633 via 00e8452.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18633/issue_event/20509863637@github.com>

Yee Cheng Chin

unread,
Oct 26, 2025, 10:33:35 PM (8 days ago) Oct 26
to vim/vim, Subscribed
ychin left a comment (vim/vim#18633)

Thanks for the fix. I can confirm that clipboard is once again working on macOS.

I was actually a little curious why the previous change even passed CI, as we do have test_quotestar which is supposed to test whether clipboard is working or not. The key issue here is that it does CheckFeature clipboard_working, but when clipboard is broken this feature flag would be off and cause the entire test to be skipped and so we have one of those silent failures.

I was trying to fix a similar issue in #16998, where we needed some ways to enforce that certain feature flags aren't just turned off unintentionally. In that PR I added the if_feat_check.vim for passing in a list of expected features that should be compiled in and enabled, e.g. python, sound, etc. It probably makes sense to add clipboard_working to that list. One caveat is that I didn't add this check to the Windows CI, so we still have a bit of a coverage gap there.

I also think it would make sense for the new PR to write new tests to make sure v:clipmethod to be set correctly for these other platforms, and if that was written, it would also have caught this issue.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18633/c3449274342@github.com>

Foxe Chen

unread,
Oct 26, 2025, 11:19:29 PM (8 days ago) Oct 26
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#18633)

I also think it would make sense for the new PR to write new tests to make sure v:clipmethod is set correctly for these other platforms (in this case it was supposed to be "other" rather than "none"), and if that was written, it would also have caught this issue.

The "other" and "gui" values for v:clipmethod have been removed, so no need for tests


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18633/c3449344044@github.com>

Reply all
Reply to author
Forward
0 new messages