From 3bda82d3b24b65426bc55659ce44d28b7d4596bc Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Tue, 28 Feb 2017 19:28:44 +0100 Subject: Make sure the prompt works when autowrap is off To reproduce the issue: $ echo -e '\E[?7l' (cf. console_codes(4)) --- .bash_prompt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.bash_prompt b/.bash_prompt index b42217f..b267dbc 100644 --- a/.bash_prompt +++ b/.bash_prompt @@ -170,6 +170,11 @@ __draw-rule () do rule+=— done + + # If we do not add a newline, the prompt will be shoved offscreen + # when autowrap is off. + rule+='\n' + __fontify ${rule} dim } -- cgit v1.2.3