Make default_leftonly theme use last_pipe_status

This commit is contained in:
Foo 2017-05-16 18:52:29 +03:00
parent b1e2086fe3
commit 30acc6ed4c
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@
"priority": 20
},
{
"function": "powerline.segments.shell.last_status",
"function": "powerline.segments.shell.last_pipe_status",
"priority": 10
}
]

View File

@ -138,7 +138,7 @@ class TestConfig(TestCase):
def test_bash(self):
from powerline.shell import ShellPowerline
args = Args(last_exit_code=1, jobnum=0, ext=['shell'], renderer_module='.bash', config_override={'ext': {'shell': {'theme': 'default_leftonly'}}})
args = Args(last_exit_code=1, last_pipe_status=[], jobnum=0, ext=['shell'], renderer_module='.bash', config_override={'ext': {'shell': {'theme': 'default_leftonly'}}})
with ShellPowerline(args, logger=get_logger(), run_once=False) as powerline:
powerline.render(segment_info={'args': args})
with ShellPowerline(args, logger=get_logger(), run_once=False) as powerline: