diff --git a/src/reader.cpp b/src/reader.cpp index 7f99a1148..8e8e185f6 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -711,6 +711,10 @@ static void exec_prompt() { // Do not allow the exit status of the prompts to leak through. const bool apply_exit_status = false; + // HACK: Query winsize again because it might have changed. + // This allows prompts to react to $COLUMNS. + (void) get_current_winsize(); + // If we have any prompts, they must be run non-interactively. if (data->left_prompt.size() || data->right_prompt.size()) { proc_push_interactive(0);