aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-06-09 11:53:10 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-06-09 11:53:10 +0300
commit8bc9b7882519ce598c0a7ad1a04545b2a2dac798 (patch)
treea4286d5fa94fef95d40d2490df78973f784b6a88 /functions
parent2f379690f334037df509bdfe42e117164977b4f3 (diff)
ignore COLUMNS in _p9k_prompt_length
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/utilities.zsh1
1 files changed, 1 insertions, 0 deletions
diff --git a/functions/utilities.zsh b/functions/utilities.zsh
index d99da411..5d32370c 100755
--- a/functions/utilities.zsh
+++ b/functions/utilities.zsh
@@ -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