From 37376d9970294063b2ba9594204d50cfa181ebb6 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Fri, 8 Apr 2016 11:16:14 -0400 Subject: [PATCH] Treat v:shell_error >= 2 as "not version controlled" for AccuRev When a user isn't logged in, "accurev diff" will return an exit code of 52. Since the only well defined values are 0 or 1, treat anything else as unversioned. --- autoload/sy/repo.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/sy/repo.vim b/autoload/sy/repo.vim index b7f3866..b2c0796 100644 --- a/autoload/sy/repo.vim +++ b/autoload/sy/repo.vim @@ -76,7 +76,7 @@ endfunction " Function: #get_diff_accurev {{{1 function! sy#repo#get_diff_accurev() abort let diff = s:run(g:signify_vcs_cmds.accurev, b:sy_info.file, 1) - return (v:shell_error == 2) ? [0, ''] : [1, diff] + return (v:shell_error >= 2) ? [0, ''] : [1, diff] endfunction " Function: #get_diff_perforce {{{1