Set the default value for 'packpath'

As noted in “:help 'packpath'”, the default value is supposed to be the
same as that for 'runtimepath'.  This was missed in the original port of
the packages functionality from Vim.

Closes #5193
This commit is contained in:
James McCoy
2016-08-08 18:19:26 -04:00
parent abb0928dfb
commit 84bf53b803
2 changed files with 16 additions and 0 deletions

View File

@@ -521,6 +521,8 @@ static void set_runtimepath_default(void)
#undef SITE_SIZE
#undef AFTER_SIZE
set_string_default("runtimepath", rtp, true);
// Make a copy of 'rtp' for 'packpath'
set_string_default("packpath", rtp, false);
xfree(data_dirs);
xfree(config_dirs);
xfree(data_home);