Rename last_{left,right}_group to {left,right}_group
This commit is contained in:
parent
a2e0ed982f
commit
75f53ef6e5
|
@ -78,8 +78,8 @@ function! s:prototype.build() dict
|
||||||
let sep_change =
|
let sep_change =
|
||||||
\ s:get_separator_change(group, "", outer_left_group, sep_size, alt_sep_size) +
|
\ s:get_separator_change(group, "", outer_left_group, sep_size, alt_sep_size) +
|
||||||
\ s:get_separator_change(group, "", outer_right_group, sep_size, alt_sep_size)
|
\ s:get_separator_change(group, "", outer_right_group, sep_size, alt_sep_size)
|
||||||
let last_left_group = group
|
let left_group = group
|
||||||
let last_right_group = group
|
let right_group = group
|
||||||
let self._left_tab -=
|
let self._left_tab -=
|
||||||
\ self.try_insert_tab(self._left_tab, group, self._left_position, sep_change, 1)
|
\ self.try_insert_tab(self._left_tab, group, self._left_position, sep_change, 1)
|
||||||
|
|
||||||
|
@ -92,8 +92,8 @@ function! s:prototype.build() dict
|
||||||
if !center_active && self._right_tab <= self._last_tab
|
if !center_active && self._right_tab <= self._last_tab
|
||||||
let group = self.get_group(self._right_tab)
|
let group = self.get_group(self._right_tab)
|
||||||
let sep_change =
|
let sep_change =
|
||||||
\ s:get_separator_change(group, last_right_group, outer_right_group, sep_size, alt_sep_size)
|
\ s:get_separator_change(group, right_group, outer_right_group, sep_size, alt_sep_size)
|
||||||
let last_right_group = group
|
let right_group = group
|
||||||
let self._right_tab +=
|
let self._right_tab +=
|
||||||
\ self.try_insert_tab(self._right_tab, group, self._right_position, sep_change, 1)
|
\ self.try_insert_tab(self._right_tab, group, self._right_position, sep_change, 1)
|
||||||
endif
|
endif
|
||||||
|
@ -103,16 +103,16 @@ function! s:prototype.build() dict
|
||||||
if self._left_tab >= self._first_tab
|
if self._left_tab >= self._first_tab
|
||||||
let group = self.get_group(self._left_tab)
|
let group = self.get_group(self._left_tab)
|
||||||
let sep_change =
|
let sep_change =
|
||||||
\ s:get_separator_change(group, last_left_group, outer_left_group, sep_size, alt_sep_size)
|
\ s:get_separator_change(group, left_group, outer_left_group, sep_size, alt_sep_size)
|
||||||
let last_left_group = group
|
let left_group = group
|
||||||
let done = self.try_insert_tab(self._left_tab, group, self._left_position, sep_change, 0)
|
let done = self.try_insert_tab(self._left_tab, group, self._left_position, sep_change, 0)
|
||||||
let self._left_tab -= done
|
let self._left_tab -= done
|
||||||
endif
|
endif
|
||||||
if self._right_tab <= self._last_tab && (center_active || !done)
|
if self._right_tab <= self._last_tab && (center_active || !done)
|
||||||
let group = self.get_group(self._right_tab)
|
let group = self.get_group(self._right_tab)
|
||||||
let sep_change =
|
let sep_change =
|
||||||
\ s:get_separator_change(group, last_right_group, outer_right_group, sep_size, alt_sep_size)
|
\ s:get_separator_change(group, right_group, outer_right_group, sep_size, alt_sep_size)
|
||||||
let last_right_group = group
|
let right_group = group
|
||||||
let done = self.try_insert_tab(self._right_tab, group, self._right_position, sep_change, 0)
|
let done = self.try_insert_tab(self._right_tab, group, self._right_position, sep_change, 0)
|
||||||
let self._right_tab += done
|
let self._right_tab += done
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue