mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 12:03:48 -05:00
Replace v:t_string with backward-compatible equivalent.
v:t_string was introduced in Vim 7.4.2071. Closes #464.
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
let s:t_string = type('')
|
||||||
|
|
||||||
" Primary functions {{{
|
" Primary functions {{{
|
||||||
|
|
||||||
function! gitgutter#all(force) abort
|
function! gitgutter#all(force) abort
|
||||||
@@ -15,7 +17,7 @@ endfunction
|
|||||||
function! gitgutter#init_buffer(bufnr)
|
function! gitgutter#init_buffer(bufnr)
|
||||||
if gitgutter#utility#is_active(a:bufnr)
|
if gitgutter#utility#is_active(a:bufnr)
|
||||||
let p = gitgutter#utility#repo_path(a:bufnr, 0)
|
let p = gitgutter#utility#repo_path(a:bufnr, 0)
|
||||||
if type(p) != v:t_string || empty(p)
|
if type(p) != s:t_string || empty(p)
|
||||||
call gitgutter#utility#set_repo_path(a:bufnr)
|
call gitgutter#utility#set_repo_path(a:bufnr)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user