Skip to content

Commit c5e737d

Browse files
committed
Window(fix[move_window]): -r is standalone renumber, not renumber-after-move
why: In tmux's cmd-move-window.c, the -r flag triggers session_renumber_windows() and returns CMD_RETURN_NORMAL immediately — the move logic on subsequent lines is never reached. The docstring incorrectly said "Renumber all windows after moving" implying both a renumber and a move occur. what: - Fix docstring to document -r as a standalone operation - Note that other parameters are ignored when renumber is used
1 parent a800cbb commit c5e737d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libtmux/window.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,9 @@ def move_window(
969969
970970
.. versionadded:: 0.45
971971
renumber : bool, optional
972-
Renumber all windows after moving (``-r`` flag).
972+
Renumber all windows in sequential order (``-r`` flag). This is a
973+
standalone operation — when used, no move is performed and other
974+
parameters are ignored.
973975
974976
.. versionadded:: 0.45
975977

0 commit comments

Comments
 (0)