nicm
6b056eb53f
Add some new mouse ranges called "control0" to "control9", will be used
...
for controls on floating panes, from Dane Jensen, with some bits from
Michael Grant.
2026-04-03 10:13:20 +00:00
nicm
0917cd7010
Missed a line from previous.
2026-04-03 09:18:24 +00:00
nicm
bdd78ce38e
Handle OSC 9;4 progress bar sequence and store in format variables, from
...
Eric Dorland in GitHub issue 4954.
2026-04-03 09:14:27 +00:00
nicm
7497db6e37
Increase b64_pton buffer to allow for Base64 without padding, from
...
Michal Majchrowicz.
2026-04-03 08:23:10 +00:00
nicm
483683c197
Do not leak command in list-keys, reported by tb@. Also tidy up some
...
function names while here.
2026-04-02 09:58:14 +00:00
nicm
c95d341220
Do not leak trimmed string when expanding, found by ossfuzz.
2026-04-02 09:35:46 +00:00
nicm
be2c6f3b5e
Use INT_MIN + 1 as strtonum lower limits in formats so -ve works, found
...
by ossfuzz.
2026-04-02 09:28:22 +00:00
nicm
2d5736f297
Limit argc to between 0 and 1000 to prevent fatal from MSG_COMMAND, from
...
Michal Majchrowicz.
2026-04-02 09:11:39 +00:00
nicm
1a51193899
Handle empty regular expression in substitution, found by ossfuzz.
2026-04-02 08:45:35 +00:00
nicm
8b51abef08
Check for \0 after skipping # not before in format_expand1, from ossfuzz.
2026-04-02 08:37:14 +00:00
nicm
cbb49e8c84
Fix NULL dereference in sort.c, from Dane Jensen.
2026-04-02 08:01:47 +00:00
nicm
7af58f74b0
Fixed missing drag end detection and mouse button detection with
...
modifiers. From Dane Jensen, reported by Joseph Tyson and Mark Kelly.
2026-04-01 08:10:02 +00:00
nicm
2ff0dd3fef
Reorganize structure of key_code so that it can be built directly by
...
bitshifts rather than a load of huge switches, from Dane Jensen in
GitHub issue 4953.
2026-03-31 11:46:43 +00:00
nicm
022b5cf193
When in copy mode with a large scroll offset and the window is resized
...
so that history shrinks, data->oy can exceed screen_hsize causing an
unsigned integer underflow in the py computation. Clamp data->oy in
window_copy_resize and window_copy_cmd_refresh_from_pane before the
subtraction. From futpib at gmail dot com in GitHub issue 4958.
2026-03-30 09:23:40 +00:00
nicm
e0237c6b8c
Ql -> Fl, from arza at arza dot us in GitHub issue 4949.
2026-03-27 08:41:54 +00:00
nicm
1cf3e02bfb
Add a format flag for bracket paste, from George Nachman in GitHub issue
...
4951.
2026-03-27 08:40:26 +00:00
nicm
b7d1e6257c
Use \- for hyphens in tmux.1 to cause newer groff versions to render
...
them correctly (ASCII hyphen rather than Unicode) which aids copy and
paste. From Keith Thompson in GitHub issue 4948.
2026-03-25 10:08:50 +00:00
nicm
f7dad4f38f
Check lastgc is not NULL before using it, GitHub issue 4935 from Pavel
...
Lavrukhin.
2026-03-23 09:05:59 +00:00
nicm
b88c08f860
Fix a NULL dereference and use after free, GitHub issue 4936 from Pavel
...
Lavrukhin.
2026-03-23 09:03:43 +00:00
nicm
3909d7e92f
Use window options for cursor-style to avoid crash when no pane, from
...
Arden Packeer in GitHub issue 4942.
2026-03-23 08:58:39 +00:00
nicm
d70edfa0a0
Fix issue where popup window gets overwritten by background updates,
...
from Conor Taylor in GitHub issue 4920.
2026-03-23 08:48:32 +00:00
nicm
d22ab85b84
Protect against overflow when scrollbar is off screen, from san65384 at
...
gmail dot com in GitHub issue 4933.
2026-03-23 08:45:30 +00:00
nicm
e446cba6a9
Copy hyperlinks when redrawing popup so they do not vanish, from Antoine
...
Gaudreau Simard in GitHub issue 4925.
2026-03-18 08:49:27 +00:00
nicm
02a9cdff57
Fix buffer to both for get-clipboard, from Seth Girvan.
2026-03-18 08:41:20 +00:00
nicm
f516f8a1d4
Allow codepoint-widths to accept ranges, from san65384 at gmail dot com
...
in GitHub issue 4930.
2026-03-18 08:38:54 +00:00
nicm
fd62f419ac
Add a short builtin help text for each mode accessible with C-h,
...
based on code from Patrick Motard in GitHub issue 4751.
2026-03-12 12:40:40 +00:00
nicm
19f3fb131b
Draw message as one format, allowing prompts and messages to occupy only
...
a portion of the status bar, overlaying the normal status content rather
than replacing the entire line. A new message-format option now controls
the entire message (like status-format). From Conor Taylor in GitHub
issue 4861.
2026-03-12 07:25:13 +00:00
nicm
551e8fcd24
Fix comparison of menu keys, reported by Vladimir Bauer in GitHub issue
...
4891.
2026-03-12 07:15:26 +00:00
nicm
67141fb4bb
Add next/previous variables for windows in W: loop, from Conor Taylor in
...
GitHub issue 4856.
2026-03-09 15:46:01 +00:00
tb
2efa762c2b
tmux: move block assigning to prefix a bit down to avoid a small leak
...
ok nicm
2026-03-09 14:37:26 +00:00
nicm
881bec958e
Fix server crash when control client session is destroyed, from Renaud
...
Allard in GitHub issue 4916.
2026-03-09 14:33:55 +00:00
nicm
8899c751e5
Check for NULL value in tilde expansion before dereferencing, from
...
Renaud Allard in GitHub issue 4916.
2026-03-09 14:31:41 +00:00
tb
91b5108eae
tmux: don't leak menu if the tty is too small to display it
...
ok nicm
2026-03-06 08:19:22 +00:00
nicm
2c7f73f9c4
Do not use recallocarray because the stored size may have changed during
...
reflow so may not match what it expects, fixes crash reported by Caspar
Schutijser.
2026-03-06 08:09:58 +00:00
nicm
41bddae907
Fix incorrect condition for creating client name, from Vlad Apostol in
...
GitHub issue 4911.
2026-03-05 22:50:14 +00:00
nicm
1e208abd93
Add pane_pipe_pid with pipe fd and call setpgid to make it easier to kill.
2026-03-05 09:22:08 +00:00
nicm
6d37cc94a7
Make -c work with new-session -A, from Jody Frankowski in GitHub issue
...
4906.
2026-03-04 08:16:47 +00:00
nicm
55722a7ed7
Another memory leak, from Huihui Huang.
2026-03-04 08:15:24 +00:00
tb
d2fa20a390
tmux: use VIS_NOSLASH to avoid annoying double escaping on paste
...
from nicm
2026-03-04 07:19:32 +00:00
tb
bcbad050d4
tmux: tc can be NULL, so check before deref to avoid crashing the server
...
ok nicm
2026-03-04 07:17:01 +00:00
nicm
49bb43047d
Allow copy mode to work for readonly clients, except for copy commands,
...
from Dane Jensen.
2026-03-03 12:26:14 +00:00
nicm
77ce0a837d
Check window is not NULL, from Chema Gonzalez in GitHub issue 4908.
2026-03-03 12:24:18 +00:00
nicm
f33b14bda6
Revert r1.343 for the moment since it breaks behaviour (#() in
...
status-left) that we need to keep.
2026-03-02 08:48:57 +00:00
nicm
e603549563
Do not leak active/all strings in format_loop_windows; from Huihui Huang
...
in GitHub issue 4898.
2026-03-02 08:41:43 +00:00
nicm
e80e0c761a
Fix incorrect placement of It Xo, from Dane Jensen.
2026-03-02 08:39:44 +00:00
nicm
9e804202b6
Fix memory leak, from Emmanuel Ugwu in GitHub issue 4900.
2026-03-02 08:38:23 +00:00
nicm
5413953d30
Validate -O flags, from Dane Jensen in GitHub issue 4889.
2026-02-27 08:25:12 +00:00
nicm
50e51b4513
Fix memory leak, from Chris Lewis, reported by Huihui Huang.
2026-02-27 08:23:02 +00:00
nicm
dbb23d2182
Do not free buffer after adding to paste (since it now owns it).
2026-02-26 11:01:48 +00:00
nicm
5ff385f8a9
Tweak previous to reset cursor again as well.
2026-02-25 07:59:45 +00:00