eval.c: has("unnamedplus"). (#6136)

Return 1 for UNIX  with a functioning clipboard provider.

Closes #6103
This commit is contained in:
Kurt Bonatz
2017-02-18 05:04:46 -08:00
committed by Justin M. Keyes
parent 158ea52854
commit b0bbe82a60
2 changed files with 12 additions and 0 deletions

View File

@@ -11442,6 +11442,10 @@ static void f_has(typval_T *argvars, typval_T *rettv, FunPtr fptr)
#endif
} else if (STRICMP(name, "syntax_items") == 0) {
n = syntax_present(curwin);
#ifdef UNIX
} else if (STRICMP(name, "unnamedplus") == 0) {
n = eval_has_provider("clipboard");
#endif
}
}