diff --git a/docs/changelog.rst b/docs/changelog.rst index b97f61bda..b7e3a0c26 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -46,6 +46,8 @@ To update |kitty|, :doc:`follow the instructions `. - Fix a regression that broke :opt:`kitten_alias` (:iss:`2952`) +- Fix a regression that broke the ``move_window_to_top`` action (:pull:`2953`) + 0.18.3 [2020-08-11] ------------------- diff --git a/kitty/tabs.py b/kitty/tabs.py index b8424fc41..f3d1eb9b1 100644 --- a/kitty/tabs.py +++ b/kitty/tabs.py @@ -439,9 +439,9 @@ class Tab: # {{{ self.relayout() def move_window_to_top(self) -> None: - n = self.windows.num_groups - if n > 1: - self.move_window(1 - n) + n = self.windows.active_group_idx + if n > 0: + self.move_window(-n) def move_window_forward(self) -> None: self.move_window()