From c3a0eeaa58d6c8981882ce1e2ad633b2c00c8b16 Mon Sep 17 00:00:00 2001 From: NerdyPepper Date: Tue, 21 May 2019 23:17:40 +0530 Subject: fixed: repo status shows incorrect state sometimes --- src/vcs.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/vcs.rs b/src/vcs.rs index 5cdce31..aee4144 100644 --- a/src/vcs.rs +++ b/src/vcs.rs @@ -74,10 +74,7 @@ pub fn vcs_status() -> Option<(colored::ColoredString, colored::ColoredString)> repo_stat = stat_char.color(&git_index_modified_color[..]); }, // STATE: committed (changes have been saved in the repo) - _ => { - let stat_char = env::var("GIT_CLEAN").unwrap_or("ยท".into()); - repo_stat = stat_char.color(&git_clean_color[..]); - } + _ => { } } } return Some((branch, repo_stat)) -- cgit v1.2.3