aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-02-05 01:11:06 +0100
committerGitHub <noreply@github.com>2017-02-05 01:11:06 +0100
commitbb2f36d038ccb375249a078997f68840ddcc66ef (patch)
treea080d374a6b38607806ca553d00b2d3e8b590c36 /src/nvim/buffer.c
parent3d3b1641d0cae3244c09d4602ab96d290dd0928a (diff)
parent18127f64c421a2c4da100a9e40d49c31a9a5170a (diff)
downloadrneovim-bb2f36d038ccb375249a078997f68840ddcc66ef.tar.gz
rneovim-bb2f36d038ccb375249a078997f68840ddcc66ef.tar.bz2
rneovim-bb2f36d038ccb375249a078997f68840ddcc66ef.zip
Merge #6038 from justinmk/win32-executable
win: executable()
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 26dbbe8bb5..868e842ecd 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -4086,10 +4086,8 @@ void fname_expand(buf_T *buf, char_u **ffname, char_u **sfname)
#ifdef WIN32
if (!buf->b_p_bin) {
- char_u *rfname;
-
// If the file name is a shortcut file, use the file it links to.
- rfname = os_resolve_shortcut(*ffname);
+ char_u *rfname = (char_u *)os_resolve_shortcut(*ffname);
if (rfname != NULL) {
xfree(*ffname);
*ffname = rfname;