comparison autoload/lawrencium/log.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 4d5f4233b04e
comparison
equal deleted inserted replaced
139:065625e1bb31 140:652a6f5df0f3
7 7
8 call lawrencium#add_reader("log", "lawrencium#log#read") 8 call lawrencium#add_reader("log", "lawrencium#log#read")
9 call lawrencium#add_reader("logpatch", "lawrencium#log#read_patch") 9 call lawrencium#add_reader("logpatch", "lawrencium#log#read_patch")
10 endfunction 10 endfunction
11 11
12 let s:log_style_file = expand("<sfile>:h:h") . "/resources/hg_log.style" 12 let s:log_style_file = expand("<sfile>:h:h:h") . "/resources/hg_log.style"
13 13
14 function! lawrencium#log#read(repo, path_parts, full_path) abort 14 function! lawrencium#log#read(repo, path_parts, full_path) abort
15 let l:log_opts = join(split(a:path_parts['value'], ',')) 15 let l:log_opts = join(split(a:path_parts['value'], ','))
16 let l:log_cmd = "log " . l:log_opts 16 let l:log_cmd = "log " . l:log_opts
17 17
85 endif 85 endif
86 endif 86 endif
87 87
88 " Clean up when the log buffer is deleted. 88 " Clean up when the log buffer is deleted.
89 let l:bufobj = lawrencium#buffer_obj() 89 let l:bufobj = lawrencium#buffer_obj()
90 call l:bufobj.OnDelete('call s:HgLog_Delete(' . l:bufobj.nr . ')') 90 call l:bufobj.OnDelete('call lawrencium#log#HgLog_Delete(' . l:bufobj.nr . ')')
91 endfunction 91 endfunction
92 92
93 function! s:HgLog_Delete(bufnr) 93 function! lawrencium#log#HgLog_Delete(bufnr)
94 if g:lawrencium_auto_close_buffers 94 if g:lawrencium_auto_close_buffers
95 call lawrencium#delete_dependency_buffers('lawrencium_diff_for', a:bufnr) 95 call lawrencium#delete_dependency_buffers('lawrencium_diff_for', a:bufnr)
96 call lawrencium#delete_dependency_buffers('lawrencium_rev_for', a:bufnr) 96 call lawrencium#delete_dependency_buffers('lawrencium_rev_for', a:bufnr)
97 endif 97 endif
98 endfunction 98 endfunction