Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: clear-screen widget and prompt expansion



On 2016-02-16 10:43:51 -0800, Bart Schaefer wrote:
> diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
> index 3d2471e..7e4f328 100644
> --- a/Src/Zle/zle_refresh.c
> +++ b/Src/Zle/zle_refresh.c
> @@ -2424,6 +2424,7 @@ clearscreen(UNUSED(char **args))
>      tcoutclear(TCCLEARSCREEN);
>      resetneeded = 1;
>      clearflag = 0;
> +    reexpandprompt();
>      return 0;
>  }
>  

Thanks. It seems to work well.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Messages sorted by: Reverse Date, Date, Thread, Author