Explorar o código

Merge pull request #354 from starcraftman/trail_slash

Fix #353: Not Working On Windows
Jeremy Pallats/starcraft.man %!s(int64=10) %!d(string=hai) anos
pai
achega
b836656556
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      plug.vim

+ 2 - 0
plug.vim

@@ -1305,6 +1305,8 @@ class Plugin(object):
 
   def install(self):
     target = self.args['dir']
+    if target[-1] == '\\':
+      target = target[0:-1]
 
     def clean(target):
       def _clean():