1. ZyX_I
  2. aurum


ZyX_I  committed b9a6d6a

@aurum/cmdutils: Now :AuCommit called in a diff buffer wants to commit only file
whose diff is under the cursor. Fixes #7

  • Participants
  • Parent commits 2d27f85
  • Branches default

Comments (0)

Files changed (1)

File plugin/aurum/cmdutils.vim

View file
  • Ignore whitespace
 function s:rrf.annotate(bvar, opts, ann, failmsg)
     let r={}
     let r.repo=a:bvar.repo
-    let r.file=a:bvar.files[line('.')-1]
-    if a:ann!=-2
+    if a:ann==-2
+        let r.file=a:bvar.file
+    else
+        let r.file=a:bvar.files[line('.')-1]
         if !has_key(a:opts, 'rev')
             let r.rev=a:bvar.revisions[line('.')-1]
             if r.rev is# r.repo.functions.getrevhex(r.repo, a:bvar.rev)