diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-11-16 02:23:40 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-11-16 02:23:40 +0100 |
commit | a40199d8ef689af6ec49bf7ec62979031744e425 (patch) | |
tree | 67e984f50f356fabe32629c3020239a498e2d178 /src/windows.py | |
parent | 034a2bde2c571645c7319f89ef63ccc0451bcb0e (diff) | |
download | poezio-a40199d8ef689af6ec49bf7ec62979031744e425.tar.gz poezio-a40199d8ef689af6ec49bf7ec62979031744e425.tar.bz2 poezio-a40199d8ef689af6ec49bf7ec62979031744e425.tar.xz poezio-a40199d8ef689af6ec49bf7ec62979031744e425.zip |
Add an option to display vertical tabs from bottom to top.
Diffstat (limited to 'src/windows.py')
-rw-r--r-- | src/windows.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/windows.py b/src/windows.py index c31954d9..2e2c0fd5 100644 --- a/src/windows.py +++ b/src/windows.py @@ -345,9 +345,9 @@ class VerticalGlobalInfoBar(Win): sorted_tabs = sorted_tabs[pos-height//2 : pos+height//2] for y, tab in enumerate(sorted_tabs): color = tab.vertical_color - self.addstr(y, 0, "%2d" % tab.nb, to_curses_attr(get_theme().COLOR_VERTICAL_TAB_NUMBER)) + self.addstr(y if config.get('vertical_tab_list_sort', 'desc') != 'asc' else height - y - 1, 0, "%2d" % tab.nb, to_curses_attr(get_theme().COLOR_VERTICAL_TAB_NUMBER)) self.addstr('.') - self._win.addnstr("%s" % tab.get_name(), width - 4, to_curses_attr(color)) + self.addnstr("%s" % tab.get_name(), width - 4, to_curses_attr(color)) self._refresh() class InfoWin(Win): |