mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-22 20:30:07 +00:00
ignore COLUMNS in _p9k_prompt_length
This commit is contained in:
parent
2f379690f3
commit
8bc9b78825
1 changed files with 1 additions and 0 deletions
|
@ -56,6 +56,7 @@ function _p9k_g_expand() {
|
|||
# _p9k_prompt_length $'%{a\b%Gb%}' => 1
|
||||
function _p9k_prompt_length() {
|
||||
emulate -L zsh
|
||||
local COLUMNS=1024
|
||||
local -i x y=$#1 m
|
||||
if (( y )); then
|
||||
while (( ${${(%):-$1%$y(l.1.0)}[-1]} )); do
|
||||
|
|
Loading…
Reference in a new issue