From 24a71f9a919097dab863cc1a3fa442322ff5b2c7 Mon Sep 17 00:00:00 2001 From: "Jeremy Pallats/starcraft.man" Date: Sun, 13 Dec 2015 14:11:42 -0500 Subject: [PATCH] Fix #353: Not Working On Windows * First fix was only partial, allow drive letter changes. --- plug.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index b0b8106..f75d3b3 100644 --- a/plug.vim +++ b/plug.vim @@ -1168,10 +1168,12 @@ class Buffer(object): pass class Command(object): + CD = 'cd /d' if G_IS_WIN else 'cd' + def __init__(self, cmd, cmd_dir=None, timeout=60, cb=None, clean=None): self.cmd = cmd if cmd_dir: - self.cmd = 'cd {0} && {1}'.format(cmd_dir, self.cmd) + self.cmd = '{0} {1} && {2}'.format(Command.CD, cmd_dir, self.cmd) self.timeout = timeout self.callback = cb if cb else (lambda msg: None) self.clean = clean if clean else (lambda: None)