Vim silently uses the 0 register, when clipboard/register * or + is not available. This might be a bit unexpected for the user.
So let's just warn when we silently (re-)use register 0.
related: #14768
Draft, because it is missing test.
https://github.com/vim/vim/pull/16013
(7 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@chrisbra pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@zeertzjq commented on this pull request.
In src/message.c:
> @@ -55,6 +55,9 @@ static int msg_hist_len = 0; static FILE *verbose_fd = NULL; static int verbose_did_open = FALSE; +static int did_warn_clipboard = FALSE; +static char *warn_clipboard = "W23: Clipboard register not available, using register 0";
Is an N_() needed here so that this message is translatable?
—
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.
In src/message.c:
> @@ -55,6 +55,9 @@ static int msg_hist_len = 0; static FILE *verbose_fd = NULL; static int verbose_did_open = FALSE; +static int did_warn_clipboard = FALSE; +static char *warn_clipboard = "W23: Clipboard register not available, using register 0";
Hm, N_() or _(). ?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()