Commits

ZyX_I committed 4da9419

@%aurum/cmdutils: Added check for repo.get result

Comments (0)

Files changed (1)

autoload/aurum/cmdutils.vim

         let r.file=a:bvar.file
     else
         let r.repo=s:_r.repo.get(s:_r.os.path.dirname(a:bvar.file))
-        if a:act isnot# 'getrr'
+        if r.repo isnot 0 && a:act isnot# 'getrr'
             let r.file=r.repo.functions.reltorepo(r.repo, a:bvar.file)
         endif
     endif
     if has_key(a:opts, 'file') && a:opts.file isnot# ':'
         if a:act isnot# 'getfile' && a:opts.repo is# ':'
             let repo=s:_r.repo.get(s:_r.os.path.dirname(a:opts.file))
-            if a:act isnot# 'getrr'
+            if repo isnot 0 && a:act isnot# 'getrr'
                 let file=repo.functions.reltorepo(repo, a:opts.file)
             endif
         else