0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.0.0278: the +wildignore feature is nearly always available

Problem:    The +wildignore feature is nearly always available.
Solution:   Graduate +wildignore for consistency.
This commit is contained in:
Bram Moolenaar
2022-08-26 16:41:14 +01:00
parent c361842f14
commit 074fbd4131
11 changed files with 17 additions and 57 deletions

View File

@@ -126,17 +126,16 @@ set_init_1(int clean_arg)
set_string_default_esc("sh", p, TRUE);
#endif
#ifdef FEAT_WILDIGN
/*
* Set the default for 'backupskip' to include environment variables for
* temp files.
*/
{
# ifdef UNIX
#ifdef UNIX
static char *(names[4]) = {"", "TMPDIR", "TEMP", "TMP"};
# else
#else
static char *(names[3]) = {"TMPDIR", "TEMP", "TMP"};
# endif
#endif
int len;
garray_T ga;
int mustfree;
@@ -148,15 +147,15 @@ set_init_1(int clean_arg)
for (n = 0; n < (long)ARRAY_LENGTH(names); ++n)
{
mustfree = FALSE;
# ifdef UNIX
#ifdef UNIX
if (*names[n] == NUL)
# ifdef MACOS_X
# ifdef MACOS_X
p = (char_u *)"/private/tmp";
# else
# else
p = (char_u *)"/tmp";
# endif
else
# endif
else
#endif
p = vim_getenv((char_u *)names[n], &mustfree);
if (p != NULL && *p != NUL)
{
@@ -186,7 +185,6 @@ set_init_1(int clean_arg)
vim_free(ga.ga_data);
}
}
#endif
/*
* 'maxmemtot' and 'maxmem' may have to be adjusted for available memory