From c9caee37b446d7187935d43f4aa9b3c258435c79 Mon Sep 17 00:00:00 2001
From: Aaron Gyes <me@aaron.gy>
Date: Fri, 1 Jul 2016 06:22:23 -0700
Subject: [PATCH] Fix fish_indent leaving colors set/messing up type

After the colorized syntax output in type -a foo, "foo is /usr/..."
would also be colored. (or 'test' in fish_indent foo.fish; echo test).

Make fish_indent reset the color when it's done.
---
 src/fish_indent.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fish_indent.cpp b/src/fish_indent.cpp
index a965c4e14..922394fcd 100644
--- a/src/fish_indent.cpp
+++ b/src/fish_indent.cpp
@@ -228,7 +228,7 @@ static std::string ansi_colorize(const wcstring &text, const std::vector<highlig
         }
         writech(text.at(i));
     }
-
+    set_color(rgb_color_t::normal(), rgb_color_t::normal());
     output_set_writer(saved);
     std::string result;
     result.swap(output_receiver);