mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
Remove all invalid nvimrc and ngvimrc references
"vimrc" refers to all files that are used to configure Neovim. The main configuration file is init.vim nowadays. All nvimrc references that are left refer to a local ".nvimrc" which is read if 'exrc' is set. ".ngvimrc" references were completely wiped. Closes #3552.
This commit is contained in:
@@ -2412,9 +2412,7 @@ do_source (
|
||||
*/
|
||||
p = path_tail(fname_exp);
|
||||
if ((*p == '.' || *p == '_')
|
||||
&& (STRICMP(p + 1, "nvimrc") == 0
|
||||
|| STRICMP(p + 1, "ngvimrc") == 0
|
||||
|| STRICMP(p + 1, "exrc") == 0)) {
|
||||
&& (STRICMP(p + 1, "nvimrc") == 0 || STRICMP(p + 1, "exrc") == 0)) {
|
||||
if (*p == '_')
|
||||
*p = '.';
|
||||
else
|
||||
|
Reference in New Issue
Block a user