...
This commit is contained in:
parent
1b9c5522fb
commit
5674dc5bfc
@ -2,15 +2,20 @@
|
||||
# vim:fileencoding=utf-8
|
||||
# License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net>
|
||||
|
||||
from collections import namedtuple
|
||||
|
||||
from .config import build_ansi_color_table
|
||||
from .constants import WindowGeometry
|
||||
from .fast_data_types import (
|
||||
DECAWM, Screen, cell_size_for_window, pt_to_px, viewport_for_window, set_tab_bar_render_data
|
||||
DECAWM, Screen, cell_size_for_window, pt_to_px, set_tab_bar_render_data,
|
||||
viewport_for_window
|
||||
)
|
||||
from .layout import Rect
|
||||
from .utils import color_as_int
|
||||
from .window import calculate_gl_geometry
|
||||
|
||||
TabBarData = namedtuple('TabBarData', 'title is_active is_last needs_attention')
|
||||
|
||||
|
||||
class TabBar:
|
||||
|
||||
|
||||
@ -16,11 +16,10 @@ from .fast_data_types import (
|
||||
)
|
||||
from .layout import create_layout_object_for, evict_cached_layouts
|
||||
from .session import resolved_shell
|
||||
from .tab_bar import TabBar
|
||||
from .tab_bar import TabBar, TabBarData
|
||||
from .utils import log_error
|
||||
from .window import Window
|
||||
|
||||
TabbarData = namedtuple('TabbarData', 'title is_active is_last needs_attention')
|
||||
SpecialWindowInstance = namedtuple('SpecialWindow', 'cmd stdin override_title cwd_from cwd overlay_for env')
|
||||
|
||||
|
||||
@ -474,7 +473,7 @@ class TabManager: # {{{
|
||||
if w.needs_attention:
|
||||
needs_attention = True
|
||||
break
|
||||
ans.append(TabbarData(title, t is at, t is self.tabs[-1], needs_attention))
|
||||
ans.append(TabBarData(title, t is at, t is self.tabs[-1], needs_attention))
|
||||
return ans
|
||||
|
||||
def activate_tab_at(self, x):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user