From 203061292ff5cc8b2affe8dad3cbf366e3eba109 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 7 Aug 2020 17:56:32 +0200 Subject: [PATCH] Remove unused "__fish_prompt_cwd" variable The repaint handler erased a variable that was just a dumb cache when `set_color` wasn't a builtin. It was removed in 3f11d90744ef1ab1b32f394d50eb4b911aaf50f3 in 2014. --- share/functions/__fish_config_interactive.fish | 1 - 1 file changed, 1 deletion(-) diff --git a/share/functions/__fish_config_interactive.fish b/share/functions/__fish_config_interactive.fish index 4cd46fe99..7fb422d20 100644 --- a/share/functions/__fish_config_interactive.fish +++ b/share/functions/__fish_config_interactive.fish @@ -140,7 +140,6 @@ function __fish_config_interactive -d "Initializations that should be performed end function __fish_repaint $varargs -d "Event handler, repaints the prompt when fish_color_cwd* changes" if status --is-interactive - set -e __fish_prompt_cwd commandline -f repaint 2>/dev/null end end