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

Re: [regression] %2K prompt expansion no longer works



On 8/30/20, Stephane Chazelas <stephane@xxxxxxxxxxxx> wrote:
> $ print -rnP %2K | hd
> 00000000  1b 5b 34 30 6d                                    |.[40m|
> 00000005
>
> %K{2} is fine:
>
> $ print -rnP '%K{2}' | hd
> 00000000  1b 5b 34 32 6d                                    |.[42m|
> 00000005
>
> Introduced by worker:30496
> (https://www.zsh.org/mla/workers/2012/msg00421.html
> 8a9b141652a0e4157056dc21e36a64ac712a7ee7 git commit).
>
> Oddly, the comment there:
>
>> Well, nobody objected so here's a version with de-duplicated
>> code. The previous patch broke %K, but it works now (passed 1
>> for is_fg on both paths).
>
> Actually describes the bug here. Looks like Mikael just missed a bit in
> that
> fix.

I likely only tested %K{2}, sorry about that (looks like not many
other people use %2K either though).

-- 
Mikael Magnusson




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