This commit is contained in:
Kovid Goyal 2018-09-22 17:28:53 +05:30
commit e4033d997c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 0 deletions

View File

@ -791,6 +791,8 @@ class Boss:
if tm is not None: if tm is not None:
tm.next_tab(-1) tm.next_tab(-1)
prev_tab = previous_tab
def special_window_for_cmd(self, cmd, window=None, stdin=None, cwd_from=None, as_overlay=False): def special_window_for_cmd(self, cmd, window=None, stdin=None, cwd_from=None, as_overlay=False):
w = window or self.active_window w = window or self.active_window
if stdin: if stdin:

View File

@ -271,6 +271,8 @@ class Tab: # {{{
def previous_window(self): def previous_window(self):
self._next_window(-1) self._next_window(-1)
prev_window = previous_window
def neighboring_window(self, which): def neighboring_window(self, which):
neighbors = self.current_layout.neighbors(self.windows, self.active_window_idx) neighbors = self.current_layout.neighbors(self.windows, self.active_window_idx)
candidates = neighbors.get(which) candidates = neighbors.get(which)