Fix function name.

This commit is contained in:
manga_osyo
2014-07-31 12:58:48 +09:00
parent c957aa3e77
commit 41dbb2ba27
2 changed files with 19 additions and 19 deletions

View File

@@ -77,6 +77,23 @@ endfunction
" call s:Highlight.highlight("current_word", a:current_group, current, -1)
" endfunction
function! s:highlighting(pattern, highlight, cursorline, ...)
call brightest#hl_clear()
if !s:is_enable_in_current()
return
endif
if get(a:, 1, "") == ""
return s:single_word(a:pattern, a:highlight, a:cursorline)
else
" return s:with_current(a:1, a:group, a:pattern)
endif
endfunction
let g:brightest#pattern = get(g:, "brightest#pattern", '')
@@ -102,24 +119,7 @@ function! s:highlight_in_cursorline()
endfunction
function! s:highlighting(pattern, highlight, cursorline, ...)
call brightest#hl_clear()
if !s:is_enable_in_current()
return
endif
if get(a:, 1, "") == ""
return s:single_word(a:pattern, a:highlight, a:cursorline)
else
" return s:with_current(a:1, a:group, a:pattern)
endif
endfunction
function! brightest#highlight()
function! brightest#highlighting()
call s:highlighting(
\ get(b:, "brightest_pattern", g:brightest#pattern),
\ s:default(),

View File

@@ -22,7 +22,7 @@ command! -bar BrightestDisable let g:brightest_enable = 0 | call brightest#hl_cl
augroup brightest
autocmd!
autocmd CursorMoved * call brightest#highlight()
autocmd CursorMoved * call brightest#highlighting()
autocmd BufLeave,WinLeave,InsertEnter * call brightest#hl_clear()
autocmd ColorScheme * call s:init_hl()
augroup END