[vim/vim] Fix clipboard provider feature when using redir (PR #18939)

7 views
Skip to first unread message

Foxe Chen

unread,
1:46 AM (18 hours ago) 1:46 AM
to vim/vim, Subscribed

Fixes #18937


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

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

Commit Summary

  • a29b7b8 fix clipboard provider feature when using redir

File Changes

(2 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/18939@github.com>

Christian Brabandt

unread,
7:44 AM (12 hours ago) 7:44 AM
to vim/vim, Subscribed

@chrisbra commented on this pull request.


In src/testdir/test_eval_stuff.vim:

> @@ -1152,4 +1165,27 @@ func Test_clipboard_provider_copy_paste_independent()
   set clipmethod&
 endfunc
 
+" Test if clipboard provider feature works under :redir
+func Test_clipboard_provider_redir()
+  CheckFeature clipboard_provider
+
+  let v:clipproviders["test"] = {
+        \ "copy": {
+        \       '+': function("s:Copy"),
+        \       '*': function("s:Copy")
+        \   }
+        \ }
+  set clipmethod=test
+
+  redir @+
+  echom "testing"
+  redir END

While at it, I suppose it also makes sense to add a test using execute() function


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/18939/review/3582911296@github.com>

Foxe Chen

unread,
11:50 AM (8 hours ago) 11:50 AM
to vim/vim, Push

@64-bitman pushed 1 commit.

  • 7b63170 fix clipboard provider feature when using :redir and execute()


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18939/before/a29b7b83b9392b93f545778e890e11407a540807/after/7b63170ed2203c3ff228d9aaec95342100dee84c@github.com>

Christian Brabandt

unread,
2:06 PM (6 hours ago) 2:06 PM
to vim/vim, Subscribed

Closed #18939 via beeea8a.


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/18939/issue_event/21600088487@github.com>

Reply all
Reply to author
Forward
0 new messages