mirror of
https://github.com/powerline/powerline.git
synced 2025-07-24 06:15:41 +02:00
Make sure that mode value from zpython bindings is unicode
This commit is contained in:
parent
9374d135f2
commit
3f5cedbba1
@ -9,7 +9,7 @@ import zsh
|
||||
|
||||
from powerline.shell import ShellPowerline
|
||||
from powerline.lib import parsedotval
|
||||
from powerline.lib.unicode import unicode
|
||||
from powerline.lib.unicode import unicode, u
|
||||
from powerline.lib.encoding import (get_preferred_output_encoding,
|
||||
get_preferred_environment_encoding)
|
||||
from powerline.lib.dict import mergeargs
|
||||
@ -134,7 +134,7 @@ class Prompt(object):
|
||||
zsh.eval('_POWERLINE_PARSER_STATE="${(%):-%_}"')
|
||||
zsh.eval('_POWERLINE_SHORTENED_PATH="${(%):-%~}"')
|
||||
try:
|
||||
mode = zsh.getvalue('_POWERLINE_MODE')
|
||||
mode = u(zsh.getvalue('_POWERLINE_MODE'))
|
||||
except IndexError:
|
||||
mode = None
|
||||
segment_info = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user