diff autoload/lawrencium/annotate.vim @ 140:652a6f5df0f3

Fixed for broken things after the reorganization.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 13 Jun 2016 21:55:40 -0700
parents 065625e1bb31
children fb65725f2872
line wrap: on
line diff
--- a/autoload/lawrencium/annotate.vim	Mon Jun 13 09:32:34 2016 -0700
+++ b/autoload/lawrencium/annotate.vim	Mon Jun 13 21:55:40 2016 -0700
@@ -98,7 +98,7 @@
     let b:mercurial_dir = l:repo.root_dir
     let b:lawrencium_annotated_path = l:path
     let b:lawrencium_annotated_bufnr = l:bufnr
-    call s:DefineMainCommands()
+    call lawrencium#define_commands()
 
     " Add some other nice commands and mappings.
     command! -buffer Hgannotatediffsum :call s:HgAnnotate_DiffSummary()
@@ -110,12 +110,12 @@
 
     " Clean up when the annotate buffer is deleted.
     let l:bufobj = lawrencium#buffer_obj()
-    call l:bufobj.OnDelete('call s:HgAnnotate_Delete(' . l:bufobj.nr . ')')
+    call l:bufobj.OnDelete('call lawrencium#annotate#HgAnnotate_Delete(' . l:bufobj.nr . ')')
 endfunction
 
-function! s:HgAnnotate_Delete(bufnr) abort
+function! lawrencium#annotate#HgAnnotate_Delete(bufnr) abort
     if g:lawrencium_auto_close_buffers
-        call s:delete_dependency_buffers('lawrencium_diff_for', a:bufnr)
+        call lawrencium#delete_dependency_buffers('lawrencium_diff_for', a:bufnr)
     endif
 endfunction
 
@@ -136,7 +136,7 @@
     let l:annotate_buffer = lawrencium#buffer_obj()
 
     " Find a window already displaying diffs for this annotation.
-    let l:diff_winnr = s:find_buffer_window('lawrencium_diff_for', l:annotate_buffer.nr)
+    let l:diff_winnr = lawrencium#find_buffer_window('lawrencium_diff_for', l:annotate_buffer.nr)
     if l:diff_winnr == -1
         " Not found... go back to the main source buffer and open a bottom 
         " split with the diff for the specified revision.