From 25081f60c46741c6a9f2f0f1465af876514ffbb9 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Tue, 8 Jan 2013 02:56:45 -0800 Subject: [PATCH] Make fish_config prompt color changes work more often Fixes https://github.com/fish-shell/fish-shell/issues/505 --- output.cpp | 2 +- reader.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/output.cpp b/output.cpp index ae5b1b861..69b7c181b 100644 --- a/output.cpp +++ b/output.cpp @@ -136,7 +136,7 @@ static bool term256_support_is_native(void) return max_colors == 256; } -bool output_get_supports_term256() +bool output_get_supports_term256(void) { return support_term256; } diff --git a/reader.cpp b/reader.cpp index 3a91861a7..098e70e84 100644 --- a/reader.cpp +++ b/reader.cpp @@ -815,6 +815,7 @@ void reader_repaint_if_needed() if (needs_reset) { + exec_prompt(); s_reset(&data->screen, screen_reset_current_line_and_prompt); data->screen_reset_needed = false; }