Commit Graph

12184 Commits

Author SHA1 Message Date
Nicholas Marriott
77065361d9 Update CHANGES. 2026-09-30 14:29:47 +01:00
Nicholas Marriott
cd66821a5f Fix test on macOS.
(cherry picked from commit 8d3172f4d4)
2026-09-30 14:22:55 +01:00
nicm
9e913fd398 Add NULL checks for clients that may not have identified yet, GitHub
issue 5663.

(cherry picked from commit 4a98a9dea8)
2026-09-30 14:22:55 +01:00
nicm
324ac927d6 Do not format times that localtime_r and ctime_r cannot convert, from
Alexandre Fiori.

(cherry picked from commit c34432980f)
2026-09-30 14:22:55 +01:00
Nicholas Marriott
6c11f706a3 Test for 5659 from Alexandre Fiori.
(cherry picked from commit ffbbdcc852)
2026-09-30 14:21:57 +01:00
Nicholas Marriott
88af9fd98f More repeat tests.
(cherry picked from commit 30e6a552b4)
2026-09-30 14:21:57 +01:00
nicm
360d66cde7 Add a maximum repeat size as well as count.
(cherry picked from commit 1bb90bdd62)
2026-09-30 14:21:57 +01:00
Nicholas Marriott
c20dcb54da Fix test socket names.
(cherry picked from commit 3a5df8780f)
2026-09-30 14:21:57 +01:00
Nicholas Marriott
dd96a294a6 Update test.
(cherry picked from commit 6ad23bb99c)
2026-09-30 14:21:57 +01:00
nicm
197da162a7 Do not try to decode UTF-8 if it is too long to match the pattern.
(cherry picked from commit 95aaa6cc2a)
2026-09-30 14:21:57 +01:00
nicm
83d26411c7 Do not allocate for repeat inside loop but allocate up front and just
copy in the loop.

(cherry picked from commit 389908d001)
2026-09-30 14:21:57 +01:00
nicm
02a0bef92b Copy all #s at once when multiple are seen before [ rather than only
copying one at a time which can be very slow.

(cherry picked from commit 5fbfaca6a8)
2026-09-30 14:21:57 +01:00
nicm
28bfa971da Check time every iteration for expensive repeat loop.
(cherry picked from commit c4eb4ab5df)
2026-09-30 14:21:57 +01:00
nicm
82b67a262a Use mode screen for cursor not base which may be wrong during
synchronized updates. GitHub issue 5648 from bugreporter23 at gmail dot
com.

(cherry picked from commit 5e5e15f6c7)
2026-09-30 14:21:57 +01:00
Nicholas Marriott
e66d057323 Test for 5648.
(cherry picked from commit 294bf0bf16)
2026-09-30 14:21:57 +01:00
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