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:
Andy Stewart
2018-02-13 09:37:45 +00:00
parent 9ed38f00ee
commit 933af37935

View File

@@ -1,3 +1,5 @@
let s:t_string = type('')
" Primary functions {{{
function! gitgutter#all(force) abort
@@ -15,7 +17,7 @@ endfunction
function! gitgutter#init_buffer(bufnr)
if gitgutter#utility#is_active(a:bufnr)
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)
endif
endif