dotfiles

🎜 Clone'em, tweak'em, stick'em in your $HOME 🎝
git clone https://git.kevinlegouguec.net/dotfiles
Log | Files | Refs | README

commit 3bda82d3b24b65426bc55659ce44d28b7d4596bc
parent d934eaa089ee8be6238399de7130d45906a88a00
Author: KΓ©vin Le Gouguec <kevin.legouguec@gmail.com>
Date:   Tue, 28 Feb 2017 19:28:44 +0100

Make sure the prompt works when autowrap is off

To reproduce the issue:

    $ echo -e '\E[?7l'

(cf. console_codes(4))

Diffstat:
M.bash_prompt | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git 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 }