aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-01-04 07:17:54 +0800
committerGitHub <noreply@github.com>2023-01-03 15:17:54 -0800
commit5529b07316b75913188c44698aed6c0f866c5da9 (patch)
tree5b5bbe1effb12ec1a08538268ca4bbcfef36d149 /src
parentd56c603caf348ba97b8428c9fcb812f1182e07e9 (diff)
downloadrneovim-5529b07316b75913188c44698aed6c0f866c5da9.tar.gz
rneovim-5529b07316b75913188c44698aed6c0f866c5da9.tar.bz2
rneovim-5529b07316b75913188c44698aed6c0f866c5da9.zip
fix(clipboard): show provider warning when not during batch changes #21451
It is strange that Ex commands that explicitly interact with the clipboard show provider warning, but Normal mode commands do not.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index d2dba41959..ccfd3ab834 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -6433,7 +6433,7 @@ static yankreg_T *adjust_clipboard_name(int *name, bool quiet, bool writing)
}
if (!eval_has_provider("clipboard")) {
- if (batch_change_count == 1 && !quiet
+ if (batch_change_count <= 1 && !quiet
&& (!clipboard_didwarn || (explicit_cb_reg && !redirecting()))) {
clipboard_didwarn = true;
// Do NOT error (emsg()) here--if it interrupts :redir we get into