From 9783efae2b1db5fdb90fd369c4495267944be103 Mon Sep 17 00:00:00 2001 From: Hettomei Date: Thu, 21 May 2015 23:47:09 +0200 Subject: [PATCH] Temporary disable code which references mch_resolve_shortcut 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 #2609 --- src/nvim/buffer.c | 4 +++- src/nvim/eval.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 438a85dd5d512b..cdea70395e7497 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -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; diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 7fb79697838467..c9c83c6ccbf667 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -13588,7 +13588,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;