aurum / autoload / aurum / cmdutils.vim

Diff from to

autoload/aurum/cmdutils.vim

 "▶1
 scriptencoding utf-8
-execute frawor#Setup('4.1', {'@/resources': '0.0',
+execute frawor#Setup('4.2', {'@/resources': '0.0',
             \                       '@/os': '0.0',
             \               '@%aurum/repo': '5.0',
             \               '@%aurum/edit': '1.0',
             let file=expand('%')
         else
             let repo=s:_r.repo.get(':')
-            call s:r.checkrepo(repo)
-            if a:act isnot# 'getrr'
+            if type(repo)==type({}) && a:act isnot# 'getrr'
                 let file=repo.functions.reltorepo(repo, expand('%'))
             endif
         endif
         "▶2 repo
         if !exists('repo')
             let repo=s:_r.repo.get(a:opts.repo)
-            call s:r.checkrepo(repo)
-            if file isnot 0
+            if type(repo)==type({}) && file isnot 0
                 let file=repo.functions.reltorepo(repo, file)
             endif
         endif
         endif
         "▲2
     endif
+    if type(repo)!=type({})
+        let file=0
+        let rev=0
+        if a:failmsg isnot 0
+            call s:_f.throw('nrepo')
+        endif
+    endif
     return [hasbuf, exists('repo') ? repo : 0, rev,
                 \((a:act is# 'getfiles')?
                 \   ((exists('files'))?
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.