mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
Move after_pathsep from misc2.c
This commit is contained in:

committed by
Thiago de Arruda

parent
2cb026c65c
commit
e29e956348
11
src/misc2.c
11
src/misc2.c
@@ -1613,17 +1613,6 @@ int get_real_state(void)
|
||||
return State;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return TRUE if "p" points to just after a path separator.
|
||||
* Takes care of multi-byte characters.
|
||||
* "b" must point to the start of the file name
|
||||
*/
|
||||
int after_pathsep(char_u *b, char_u *p)
|
||||
{
|
||||
return p > b && vim_ispathsep(p[-1])
|
||||
&& (!has_mbyte || (*mb_head_off)(b, p - 1) == 0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Return TRUE if file names "f1" and "f2" are in the same directory.
|
||||
* "f1" may be a short name, "f2" must be a full path.
|
||||
|
Reference in New Issue
Block a user