1. ZyX_I
  2. aurum


aurum / autoload / aurum / annotate.vim

Diff from to

File autoload/aurum/annotate.vim

     execute annwin.'wincmd w'
     setlocal scrollbind cursorbind nowrap
+    " XXX I was unable to make scrollbinded windows behave sensibly without the 
+    "     following command. No matter what I tried, if initially buffer had any 
+    "     offset from the top (line("w0")!=1), saved vertical offset of 
+    "     scrollbinded buffers was invalid, even if I moved cursor to the top 
+    "     before setting scrollbind. It is good that my task allows :syncbind, 
+    "     but it would be a pain if I wanted to have different relative offsets.
+    syncbind
     augroup AuAnnotateBW
         execute 'autocmd BufWipeOut,BufHidden <buffer='.a:annbuf.'> '.
                     \':if bufexists('.buf.') | '.
         let annbuf=bufnr('%')
         " TODO Check for errors
-        let existed=s:_r.run('silent edit', 'file', repo, rev, file)
+        let existed=s:_r.mrun('silent edit', 'file', repo, rev, file)
         let annbuf=bufnr('%')
         if !existed
             setlocal bufhidden=wipe