mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
vim-patch:7.4.1552
Problem: ":colorscheme" does not use 'packpath'.
Solution: Also use in "start" and "opt" directories in 'packpath'.
7f8989dd8a
This commit is contained in:
@@ -9336,14 +9336,14 @@ static void ex_filetype(exarg_T *eap)
|
||||
}
|
||||
if (STRCMP(arg, "on") == 0 || STRCMP(arg, "detect") == 0) {
|
||||
if (*arg == 'o' || !filetype_detect) {
|
||||
source_runtime((char_u *)FILETYPE_FILE, true);
|
||||
source_runtime((char_u *)FILETYPE_FILE, DIP_ALL);
|
||||
filetype_detect = kTrue;
|
||||
if (plugin) {
|
||||
source_runtime((char_u *)FTPLUGIN_FILE, true);
|
||||
source_runtime((char_u *)FTPLUGIN_FILE, DIP_ALL);
|
||||
filetype_plugin = kTrue;
|
||||
}
|
||||
if (indent) {
|
||||
source_runtime((char_u *)INDENT_FILE, true);
|
||||
source_runtime((char_u *)INDENT_FILE, DIP_ALL);
|
||||
filetype_indent = kTrue;
|
||||
}
|
||||
}
|
||||
@@ -9354,15 +9354,15 @@ static void ex_filetype(exarg_T *eap)
|
||||
} else if (STRCMP(arg, "off") == 0) {
|
||||
if (plugin || indent) {
|
||||
if (plugin) {
|
||||
source_runtime((char_u *)FTPLUGOF_FILE, true);
|
||||
source_runtime((char_u *)FTPLUGOF_FILE, DIP_ALL);
|
||||
filetype_plugin = kFalse;
|
||||
}
|
||||
if (indent) {
|
||||
source_runtime((char_u *)INDOFF_FILE, true);
|
||||
source_runtime((char_u *)INDOFF_FILE, DIP_ALL);
|
||||
filetype_indent = kFalse;
|
||||
}
|
||||
} else {
|
||||
source_runtime((char_u *)FTOFF_FILE, true);
|
||||
source_runtime((char_u *)FTOFF_FILE, DIP_ALL);
|
||||
filetype_detect = kFalse;
|
||||
}
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user