mirror of
https://github.com/vim/vim.git
synced 2025-10-21 08:24:06 -04:00
patch 9.1.1863: Cannot test for working "+" register
Problem: Cannot test for working "+" register Solution: Add a few more feature tests (Foxe Chen) closes: #18541 Signed-off-by: Foxe Chen <chen.foxe@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
18d57a1b4c
commit
f22cedd75f
@@ -1411,7 +1411,9 @@ $quote eval.txt /*$quote*
|
|||||||
+cindent various.txt /*+cindent*
|
+cindent various.txt /*+cindent*
|
||||||
+clientserver various.txt /*+clientserver*
|
+clientserver various.txt /*+clientserver*
|
||||||
+clipboard various.txt /*+clipboard*
|
+clipboard various.txt /*+clipboard*
|
||||||
|
+clipboard_plus_avail various.txt /*+clipboard_plus_avail*
|
||||||
+clipboard_provider various.txt /*+clipboard_provider*
|
+clipboard_provider various.txt /*+clipboard_provider*
|
||||||
|
+clipboard_star_avail various.txt /*+clipboard_star_avail*
|
||||||
+clipboard_working various.txt /*+clipboard_working*
|
+clipboard_working various.txt /*+clipboard_working*
|
||||||
+cmd editing.txt /*+cmd*
|
+cmd editing.txt /*+cmd*
|
||||||
+cmdline_compl various.txt /*+cmdline_compl*
|
+cmdline_compl various.txt /*+cmdline_compl*
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
*various.txt* For Vim version 9.1. Last change: 2025 Oct 14
|
*various.txt* For Vim version 9.1. Last change: 2025 Oct 16
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -380,6 +380,12 @@ N *+clientserver* Unix and Win32: Remote invocation |clientserver|
|
|||||||
*+clipboard* |clipboard| support compiled-in
|
*+clipboard* |clipboard| support compiled-in
|
||||||
N *+clipboard_provider* |clipboard-providers| support compiled-in
|
N *+clipboard_provider* |clipboard-providers| support compiled-in
|
||||||
*+clipboard_working* |clipboard| support compiled-in and working
|
*+clipboard_working* |clipboard| support compiled-in and working
|
||||||
|
*+clipboard_star_avail*
|
||||||
|
|clipboard| support compiled-in and star "*" register
|
||||||
|
available
|
||||||
|
*+clipboard_plus_avail*
|
||||||
|
|clipboard| support compiled-in and separate plus "+"
|
||||||
|
register available
|
||||||
T *+cmdline_compl* command line completion |cmdline-completion|
|
T *+cmdline_compl* command line completion |cmdline-completion|
|
||||||
T *+cmdline_hist* command line history |cmdline-history|
|
T *+cmdline_hist* command line history |cmdline-history|
|
||||||
T *+cmdline_info* 'showcmd' and 'ruler'; Always enabled since
|
T *+cmdline_info* 'showcmd' and 'ruler'; Always enabled since
|
||||||
|
@@ -3573,7 +3573,6 @@ get_clipmethod(char_u *str, bool *plus UNUSED, bool *star)
|
|||||||
#endif
|
#endif
|
||||||
*star = star_avail == 1;
|
*star = star_avail == 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (
|
else if (
|
||||||
#ifndef ONE_CLIPBOARD
|
#ifndef ONE_CLIPBOARD
|
||||||
plus_avail == -1 ||
|
plus_avail == -1 ||
|
||||||
@@ -3585,7 +3584,6 @@ get_clipmethod(char_u *str, bool *plus UNUSED, bool *star)
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Keep on going in order to catch errors
|
// Keep on going in order to catch errors
|
||||||
if (method != CLIPMETHOD_NONE && ret == CLIPMETHOD_FAIL)
|
if (method != CLIPMETHOD_NONE && ret == CLIPMETHOD_FAIL)
|
||||||
ret = method;
|
ret = method;
|
||||||
|
@@ -7929,8 +7929,22 @@ f_has(typval_T *argvars, typval_T *rettv)
|
|||||||
else if (STRICMP(name, "clipboard_working") == 0)
|
else if (STRICMP(name, "clipboard_working") == 0)
|
||||||
{
|
{
|
||||||
x = TRUE;
|
x = TRUE;
|
||||||
|
#ifdef FEAT_CLIPBOARD
|
||||||
|
n = clip_star.available || clip_plus.available;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
else if (STRICMP(name, "clipboard_star_avail") == 0)
|
||||||
|
{
|
||||||
|
x = TRUE;
|
||||||
#ifdef FEAT_CLIPBOARD
|
#ifdef FEAT_CLIPBOARD
|
||||||
n = clip_star.available;
|
n = clip_star.available;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
else if (STRICMP(name, "clipboard_plus_avail") == 0)
|
||||||
|
{
|
||||||
|
x = TRUE;
|
||||||
|
#ifdef FEAT_CLIPBOARD
|
||||||
|
n = clip_plus.available && &clip_star != &clip_plus;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -727,4 +727,48 @@ func Test_eval_string_in_special_key()
|
|||||||
silent! echo 0{1-$"\<S--{>n|nö% |