mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 09:48:19 +00:00
Test and refactor gettail -> path_tail.
This commit is contained in:

committed by
Thiago de Arruda

parent
6d712defa5
commit
77bfb6cd99
@@ -2519,7 +2519,7 @@ do_source (
|
||||
* Try again, replacing file name ".vimrc" by "_vimrc" or vice versa,
|
||||
* and ".exrc" by "_exrc" or vice versa.
|
||||
*/
|
||||
p = gettail(fname_exp);
|
||||
p = path_tail(fname_exp);
|
||||
if ((*p == '.' || *p == '_')
|
||||
&& (STRICMP(p + 1, "vimrc") == 0
|
||||
|| STRICMP(p + 1, "gvimrc") == 0
|
||||
|
Reference in New Issue
Block a user