Skip to content

Commit

Permalink
Temporary disable code which references mch_resolve_shortcut
Browse files Browse the repository at this point in the history
This function is only used for windows
'mch_resolve_shortcut' can be found in vim source src/os_mswin.c
-> mch_resolve_shortcut(char_u *fname)

Spotted by @equalsraf, see PR neovim#2609
  • Loading branch information
Hettomei authored and Rui Abreu Ferreira committed Aug 2, 2016
1 parent 1a24913 commit 06c1aa3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/nvim/buffer.c
Expand Up @@ -4026,7 +4026,9 @@ void fname_expand(buf_T *buf, char_u **ffname, char_u **sfname)
*sfname = *ffname;
*ffname = (char_u *)fix_fname((char *)*ffname); /* expand to full path */

#ifdef WIN32
// TODO(Hettomei,equalsraf): Temporary disable this block
// because mch_resolve_shortcut has gone from source tree.
#if 0
if (!buf->b_p_bin) {
char_u *rfname;

Expand Down
4 changes: 3 additions & 1 deletion src/nvim/eval.c
Expand Up @@ -13633,7 +13633,9 @@ static void f_resolve(typval_T *argvars, typval_T *rettv)
#endif

p = get_tv_string(&argvars[0]);
#ifdef WIN32
#if 0
// TODO(Hettomei,equalsraf): Temporary disable this block
// because mch_resolve_shortcut has gone from source tree.
{
char_u *v = NULL;

Expand Down

0 comments on commit 06c1aa3

Please sign in to comment.