mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-10 04:23:46 -05:00
@@ -1,3 +1,11 @@
|
||||
function! gitgutter#utility#supports_overscore_sign()
|
||||
if s:windows()
|
||||
return &encoding ==? 'utf-8'
|
||||
else
|
||||
return &termencoding ==? &encoding || &termencoding == ''
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! gitgutter#utility#setbufvar(buffer, varname, val)
|
||||
let dict = get(getbufvar(a:buffer, ''), 'gitgutter', {})
|
||||
let dict[a:varname] = a:val
|
||||
@@ -201,3 +209,7 @@ function! s:vimdiff(bufnr)
|
||||
return 0
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! s:windows()
|
||||
return has('win64') || has('win32') || has('win16')
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user