title stack should be LIFO not FIFO

This commit is contained in:
Kovid Goyal 2018-08-29 10:00:15 +05:30
parent 3067103b18
commit 92d06b3088
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -419,7 +419,7 @@ class Window:
if title: if title:
if pop: if pop:
if self.title_stack: if self.title_stack:
self.child_title = self.title_stack.popleft() self.child_title = self.title_stack.pop()
self.title_updated() self.title_updated()
else: else:
if self.child_title: if self.child_title: