Closed edward-rafalovsky closed 9 months ago
Would you make two changes?
if len(self.panes) >= self.size:
That doesn't need to be there, the size is checked in slide_panes. Which brings us to the second change.
def slide_panes(self, a_pane=None):
if a_pane:
self.push_pane(a_pane)
while len(self.panes) > self.size:
self.popleft_pane()
Right now I have
def slide_panes(self, a_pane=None):
if a_pane:
self.push_pane(a_pane)
if self.delete: # This line is wrong.
while len(self.panes) > self.size:
self.popleft_pane()
If you'll do that for me, I accept the patch and new release.
I got it. Dont worry about the changes. You're a php guy? I thought y'all were extinct. :)
Live window sliding should be independent from the --delete param