diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-06-19 12:16:41 +0200 |
---|---|---|
committer | Peter Stephenson <p.stephenson@samsung.com> | 2019-06-19 15:56:05 +0100 |
commit | 80aa807a61cf10ebf459ba8e06621a5ec33041dc (patch) | |
tree | 16893e03df10802a9c1a520fa049702c6c9ee13a /Doc/Zsh/mod_zle.yo | |
parent | eaba3ab2da714d09754a49eaaf4402268d95e5cb (diff) | |
download | zsh-80aa807a61cf10ebf459ba8e06621a5ec33041dc.tar.gz zsh-80aa807a61cf10ebf459ba8e06621a5ec33041dc.tar.xz zsh-80aa807a61cf10ebf459ba8e06621a5ec33041dc.zip |
fix multiple bugs in countprompt
1. Height off by one in the presence of meta characters at the end of the line. The following prompt has height 2 but countprompt used to return 3. PROMPT="${(pl.$COLUMNS..-.)}%f"$'\n' You can observe the effects of the bug with esc-x followed by reset-prompt. 2. Width off by one when a line is broken in the middle of a wide character. Assuming COLUMNS=79, the following prompt has width 2 but countprompt used to return 0. PROMPT="${(pl.40..\u3050.)}" zsh -df Press ctrl-r or type ls<tab> to observe the effects of the bug. 3. Width off by 1-7 when a line is broken in the middle of a tab. Assuming COLUMNS=79, the following prompt has width 1 but countprompt used to return 0. PROMPT="${(pl.10..\t.)}" zsh -df Press Ctrl-R or type ls<TAB> to observe the effects of the bug.
Diffstat (limited to 'Doc/Zsh/mod_zle.yo')
0 files changed, 0 insertions, 0 deletions