From 933af37935e5c67d839df17a7990039712419ffa Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Tue, 13 Feb 2018 09:37:45 +0000 Subject: [PATCH] Replace v:t_string with backward-compatible equivalent. v:t_string was introduced in Vim 7.4.2071. Closes #464. --- autoload/gitgutter.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/gitgutter.vim b/autoload/gitgutter.vim index 4a4ed9d..f336eec 100644 --- a/autoload/gitgutter.vim +++ b/autoload/gitgutter.vim @@ -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