mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 17:06:30 +00:00
vim-patch:8.1.1837: popup test fails if clipboard is supported but not working
Problem: Popup test fails if clipboard is supported but not working. Solution: Add the "clipboard_working" feature. Also use Check commands instead of "if" and "throw". And remove stray ch_logfile().4999a7fb65
Treat "clipboard_working" feature as an alias to "clipboard" feature. N/A patches for version.c: vim-patch:8.1.1840: Testing: WorkingClipboard() is not accurate Problem: Testing: WorkingClipboard() is not accurate. Solution: Check feature clipboard_working instead.52992feafe
Neovim did not port WorkingClipboard() for the legacy tests.
This commit is contained in:
@@ -4206,6 +4206,8 @@ static void f_has(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
|||||||
n = true;
|
n = true;
|
||||||
} else if (STRICMP(name, "syntax_items") == 0) {
|
} else if (STRICMP(name, "syntax_items") == 0) {
|
||||||
n = syntax_present(curwin);
|
n = syntax_present(curwin);
|
||||||
|
} else if (STRICMP(name, "clipboard_working") == 0) {
|
||||||
|
n = eval_has_provider("clipboard");
|
||||||
#ifdef UNIX
|
#ifdef UNIX
|
||||||
} else if (STRICMP(name, "unnamedplus") == 0) {
|
} else if (STRICMP(name, "unnamedplus") == 0) {
|
||||||
n = eval_has_provider("clipboard");
|
n = eval_has_provider("clipboard");
|
||||||
|
Reference in New Issue
Block a user