Commit Graph

12169 Commits

Author SHA1 Message Date
Nicholas Marriott
9b7514dcef Sort fix tests from Alexandre Fiori.
(cherry picked from commit 31b622781b)
2026-09-30 14:21:57 +01:00
Nicholas Marriott
4ab7de74fe Test for 5645.
(cherry picked from commit 797d7c176e)
2026-09-30 14:21:57 +01:00
Nicholas Marriott
e1db23c772 Tests for 5641.
(cherry picked from commit 2d7148b3fa)
2026-09-30 14:21:57 +01:00
Nicholas Marriott
9fd3fefc66 5643 test from Alexandre Fiori.
(cherry picked from commit 4aeb3f61f0)
2026-09-30 14:21:57 +01:00
nicm
0383107696 Do not use subtraction for comparators, this doesn't really matter for
IDs but it breaks key sorting. GitHub issue 5646 from Alexandre Fiori.

(cherry picked from commit db3950ed07)
2026-09-30 14:21:57 +01:00
nicm
35c602bc53 Fix dragging a floating pane by its top border over a tiled pane's
status line, GitHub issue 5645 from Michael Grant.

(cherry picked from commit a16e62849d)
2026-09-30 14:21:57 +01:00
nicm
395ea6687b Fix floating panes not being detected as obscuring the pane behind them,
GitHub issue 5641 from Michael Grant.

(cherry picked from commit bbecdc802f)
2026-09-30 14:21:57 +01:00
nicm
296c8d872a Exit 128 + SIGHUP like popups did if waiting for a pane that was killed,
from Alexandre Fiori.

(cherry picked from commit 884101263e)
2026-09-30 14:21:57 +01:00
nicm
9f16939a7e Add a second comparison for key bindings to avoid ties, GitHub issue
5647 from Alexandre Fiori.

(cherry picked from commit 86af3c8167)
2026-09-30 14:21:57 +01:00
Nicholas Marriott
7405be7fa7 Check for v1 bounds checks.
(cherry picked from commit ef712916f6)
2026-09-30 14:21:57 +01:00
nicm
99b2767117 Bounds check size and offsets for v1 layouts, found by ossfuzz.
(cherry picked from commit abb1c79886)
2026-09-30 14:21:57 +01:00
Nicholas Marriott
82709886cc Fix test.
(cherry picked from commit 71c790d659)
2026-09-30 14:21:57 +01:00
nicm
c7aabb296b Discard keys if there is no session, fixes crash reported by Artyom
Pertsovsky.

(cherry picked from commit 7a816f90e7)
2026-09-30 14:21:57 +01:00
Nicholas Marriott
983afe1670 Tests for 5636.
(cherry picked from commit 545ba99f8c)
2026-09-30 14:21:57 +01:00
nicm
c3bcda3fd6 Do not overflow window indexes at INT_MAX in new-window -a and
renumber-windows. GitHub issue 5637 from Alexandre Fiori.

(cherry picked from commit f9eb405921)
2026-09-30 14:21:57 +01:00
Nicholas Marriott
bbed41b3f5 Test for 5631.
(cherry picked from commit 5a0440b4f8)
2026-09-30 14:20:55 +01:00
nicm
a3ed12fd58 Keep the scroll position in tree mode when the list is rebuilt, GitHub
issue 5631 from Kim A Brandt.

(cherry picked from commit 4ae837de68)
2026-09-30 14:20:55 +01:00
nicm
4ab83b755e Note about default-shell, from Meriel Sartha Mittelbach.
(cherry picked from commit a4c051f27d)
2026-09-30 14:18:10 +01:00
nicm
3f3a9eb7b9 Add margins for WezTerm and ghostty, from Michael Grant.
(cherry picked from commit aa4123ab58)
2026-09-30 14:17:53 +01:00
Nicholas Marriott
17d32ae40d Update CHANGES and tests. 2026-09-24 20:49:01 +01:00
Nicholas Marriott
e4129d92c2 Test for newp -A and resize. 2026-09-24 20:13:35 +01:00
Nicholas Marriott
6a5de0d8e3 Test for resizing floating panes, from Noam Stolero. 2026-09-24 20:13:29 +01:00
Nicholas Marriott
ff7efbe37c Some tests. 2026-09-24 20:13:22 +01:00
nicm
ff7d45ad05 Do not cancel mark when click on border. 2026-09-24 20:12:52 +01:00
nicm
15a7944576 Add a feature for mintty's application escape to avoid dodgy terminals
whinging about not supporting it, GitHub issue 5626 from Pete Dietl.
2026-09-24 20:12:40 +01:00
nicm
de69122034 Some terminals have extended DECSCUSR to allow it to reset to the
default style and put that as the Se capability in their terminfo entry.
Change so that if Ss and Se exist, tmux does not overwrite them with its
own. GitHub issue 5476.
2026-09-24 20:10:36 +01:00
nicm
f38558ee12 Rather than allowing floating panes to remain outside the window and
invisible after resize, move them and resize them so they are fully
inside the window. GitHub issue 5582 from Noam Stolero.
2026-09-24 20:10:12 +01:00
nicm
38c7eb7413 Correctly write Z indexes to v2 layouts if zoomed, GitHub issue 5624. 2026-09-24 20:09:36 +01:00
nicm
ad785736e9 Only rely on the previous line wrapping when the cursor is actually on
it, GitHub issue 5625 from Ben Maurer.
2026-09-24 20:09:25 +01:00
nicm
61687f2a5b Fix typo (too few 0s) in CLIENT_CONTROL_DISCARD, from someone in GitHub issue
5622.
2026-09-24 20:08:53 +01:00
nicm
ed2b349c3e Do not leak waiting clients (in wait-for) if they are killed, GitHub
issue 5614.
2026-09-24 20:08:30 +01:00
nicm
92d29e54f4 Get x and y the right way round, fixes crash when opening a mode prompt
when the client is offset into the window; may be the crash reported by
sthen@.
2026-09-24 20:07:58 +01:00
nicm
a34d2b6b21 Do not trim all lines to make a zero line grid which reflow does not like, from
Kaixuan Li.
2026-09-21 21:06:07 +01:00
nicm
550231e83a Do not do anything in session_detach and rely on the caller destroying
the session, otherwise grouped sessions can reuse a session with no
windows. From Jeong, Heon in GitHub issue 5620.
2026-09-21 21:05:52 +01:00
nicm
102d5185c1 Do not unzoom when resizing a floating pane that was created with -A.
Similarly, skip hidden floating panes when changing Z order. Reported by Clark
Wang.
2026-09-21 21:05:19 +01:00
Nicholas Marriott
1d9029c8d7 Update tests in 3.8 branch. 2026-09-21 08:38:11 +01:00
nicm
a23ff880a2 If no floating panes, reset default starting position, and reset if any part of
the pane goes outside the window.
2026-09-21 08:30:53 +01:00
nicm
32dc7d5095 Empty string for invalid old-style formats causes old iTerm2 versions to crash,
so emit "0000," instead.
2026-09-21 08:30:29 +01:00
nicm
06ef15955c Fix session_*_flag format variables which loop over the windows (they should
only be false if all windows do not have the flag, not the first one). GitHub
issue 5599.
2026-09-21 08:30:17 +01:00
nicm
ce9bdf6734 Do not loop forever if someone tries to give WCHAR_MAX a width, GitHub issue
5602.
2026-09-21 08:30:14 +01:00
nicm
757b15f2ca Expand -c for run-shell like the other -c flags, reported by Saúl Nogueras. 2026-09-21 08:30:11 +01:00
nicm
fcb4e9760a Reset layout manually instead of calling window_unzoom which can go down the
notification path and end up double freeing the pane (this was previously
removed in 2015 but added back to fix a problem with late destroy - this is a
better fix). GitHub issue 5591 from Romain Francoise.
2026-09-21 08:30:08 +01:00
Nicholas Marriott
03436d273a Bump version. 2026-09-11 09:06:39 +01:00
Nicholas Marriott
7fdb1c90b7 Fix tests. 2026-09-11 09:06:20 +01:00
nicm
55012ded8d Add a nesting limit for v1 layouts, reported by M Khalilov, fix based on
issue 5572 from Afonso Januário. Also tweak some language while here.
2026-09-11 09:05:55 +01:00
nicm
de04ae2c65 Add remain-on-exit failed-key and a -D flag to new-pane to have a modal
pane wait for Escape/C-c. Both to allow better compatibility with
popups.
2026-09-11 09:05:41 +01:00
Nicholas Marriott
3b931d9c20 Note changes from Heon Jeong. 2026-09-11 09:05:39 +01:00
Nicholas Marriott
6f387eec2b Tweak changes. 2026-09-09 13:50:14 +01:00
Nicholas Marriott
80f522f577 Bump version. 2026-09-09 13:27:07 +01:00
Nicholas Marriott
5aeacf1cae Update CHANGES. 2026-09-09 13:06:56 +01:00