From 75f53ef6e5e20369c55cde4b1eeb1eec3282d3aa Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Sun, 18 Mar 2018 01:15:11 +0000 Subject: [PATCH] Rename last_{left,right}_group to {left,right}_group --- autoload/airline/extensions/tabline/builder.vim | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/autoload/airline/extensions/tabline/builder.vim b/autoload/airline/extensions/tabline/builder.vim index df2ac34..fc1c44a 100644 --- a/autoload/airline/extensions/tabline/builder.vim +++ b/autoload/airline/extensions/tabline/builder.vim @@ -78,8 +78,8 @@ function! s:prototype.build() dict let sep_change = \ 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) - let last_left_group = group - let last_right_group = group + let left_group = group + let right_group = group let self._left_tab -= \ 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 let group = self.get_group(self._right_tab) let sep_change = - \ s:get_separator_change(group, last_right_group, outer_right_group, sep_size, alt_sep_size) - let last_right_group = group + \ s:get_separator_change(group, right_group, outer_right_group, sep_size, alt_sep_size) + let right_group = group let self._right_tab += \ self.try_insert_tab(self._right_tab, group, self._right_position, sep_change, 1) endif @@ -103,16 +103,16 @@ function! s:prototype.build() dict if self._left_tab >= self._first_tab let group = self.get_group(self._left_tab) let sep_change = - \ s:get_separator_change(group, last_left_group, outer_left_group, sep_size, alt_sep_size) - let last_left_group = group + \ s:get_separator_change(group, left_group, outer_left_group, sep_size, alt_sep_size) + let left_group = group let done = self.try_insert_tab(self._left_tab, group, self._left_position, sep_change, 0) let self._left_tab -= done endif if self._right_tab <= self._last_tab && (center_active || !done) let group = self.get_group(self._right_tab) let sep_change = - \ s:get_separator_change(group, last_right_group, outer_right_group, sep_size, alt_sep_size) - let last_right_group = group + \ s:get_separator_change(group, right_group, outer_right_group, sep_size, alt_sep_size) + let right_group = group let done = self.try_insert_tab(self._right_tab, group, self._right_position, sep_change, 0) let self._right_tab += done endif