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 equalsraf committed May 28, 2016
1 parent 440c642 commit 5b490a6
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 @@ -3995,7 +3995,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 @@ -13438,7 +13438,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 5b490a6

Please sign in to comment.