Commit Graph

12273 Commits

Author SHA1 Message Date
Michael Grant
1632bbe8ce Fix clear issue which lost C and A osc133 markers. Several cleanups. 2026-10-03 10:01:28 +01:00
Michael Grant
0da1c84c53 Add collapsible OSC 133 output to copy mode 2026-10-03 10:01:28 +01:00
Michael Grant
0a82ccc16c Fix OSC 133 output range lookup for markers sharing a line
Handle C and D on the same line, output ending on the next prompt's
line, and output starting on a prompt line. Keep the output columns
when A resets a line's prompt data, and fall back to the previous
output if the range is empty. Extend the regress test to cover these
and reset the paste buffer before each check.
2026-10-03 09:59:28 +01:00
Michael Grant
1612a88282 Add pipe-selection copy mode command 2026-10-03 09:59:28 +01:00
Michael Grant
2feca9669c Add OSC 133 copy mode output commands 2026-10-03 09:59:28 +01:00
Michael Grant
ea14195553 Allow callers to override editor command 2026-10-03 09:59:28 +01:00
Nicholas Marriott
59387debff Fix test. 2026-10-03 08:41:26 +01:00
Nicholas Marriott
ba738e8155 Fix another test on macOS. 2026-10-03 08:28:51 +01:00
Nicholas Marriott
6916a74c0b Fix another test on macOS. 2026-10-03 08:28:21 +01:00
Nicholas Marriott
bc3cf3bfa8 Fix another test on macOS. 2026-10-03 08:28:02 +01:00
Nicholas Marriott
c4a8eeb236 Fix test again. 2026-10-03 07:59:23 +01:00
Nicholas Marriott
3bdbaacd94 Fix test on macOS. 2026-10-03 07:48:52 +01:00
tmux update bot
596d04a193 Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master:
  Include menus when working out what parts of a pane are visible to avoid overwriting them, GitHub issue 5593.
  Modify display-message -c target-client to use the data relative to target-client, GitHub issue 5613 from Michael Grant.
  Quote session_alert in status-format[2], GitHub issue 5671.
  Only skip collecting text except for right margin when autowrap is off, from Jang-Ho Hwang.
  Change to the new working directory even if getcwd fails, GitHub issue 5658.
2026-10-02 19:21:31 +00:00
nicm
a21247a508 Include menus when working out what parts of a pane are visible to avoid
overwriting them, GitHub issue 5593.
2026-10-02 19:21:29 +00:00
nicm
aed667218b Modify display-message -c target-client to use the data relative to
target-client, GitHub issue 5613 from Michael Grant.
2026-10-02 19:21:29 +00:00
nicm
47c789a097 Quote session_alert in status-format[2], GitHub issue 5671. 2026-10-02 19:21:29 +00:00
nicm
dfcb588029 Only skip collecting text except for right margin when autowrap is off,
from Jang-Ho Hwang.
2026-10-02 19:21:29 +00:00
nicm
a8523db838 Change to the new working directory even if getcwd fails, GitHub issue 5658. 2026-10-02 19:21:29 +00:00
Nicholas Marriott
f37d4c0553 Test for 5593. 2026-10-02 16:21:13 +01:00
Nicholas Marriott
24cde9e0eb Test for 5613. 2026-10-02 16:13:12 +01:00
Nicholas Marriott
ec2f2d9f99 Tes for 5656. 2026-10-02 15:17:12 +01:00
Nicholas Marriott
5f278c8f2a Regress for damage rectangles. 2026-10-02 15:15:02 +01:00
tmux update bot
92e14631d3 Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master:
  Sync redraw should use the given rows not the scroll region now.
  Instead of redrawing the entire pane or scene when moving or redrawing a pane, add damage rectangles and redraw only the affected spans. From Michael Grant.
  Do not leak client if lost before configuration is loaded, and do not load multiple times. GitHub issues 5661 and 5662 from Alexandre Fiori.
  Restore the zoom when swap-pane refuses a floating pane, GitHub issue 5660 from Alexandre Fiori.
  Do not use client for copy-mode -S if NULL, reported by Martin Vlach.
2026-10-02 14:10:43 +00:00
nicm
556235fbe2 Sync redraw should use the given rows not the scroll region now. 2026-10-02 14:10:41 +00:00
nicm
0a1adfa116 Instead of redrawing the entire pane or scene when moving or redrawing a
pane, add damage rectangles and redraw only the affected spans. From
Michael Grant.
2026-10-02 14:10:41 +00:00
nicm
950a7f6631 Do not leak client if lost before configuration is loaded, and do not load
multiple times. GitHub issues 5661 and 5662 from Alexandre Fiori.
2026-10-02 14:10:41 +00:00
nicm
a511a7ab55 Restore the zoom when swap-pane refuses a floating pane, GitHub issue
5660 from Alexandre Fiori.
2026-10-02 14:10:41 +00:00
nicm
5932140d30 Do not use client for copy-mode -S if NULL, reported by Martin Vlach. 2026-10-02 14:10:41 +00:00
Nicholas Marriott
4712726062 Tests for 5661 etc, from Alexandre Fiori. 2026-10-02 13:28:16 +01:00
Nicholas Marriott
ff1364a19c copy-mode -S test. 2026-10-02 13:13:32 +01:00
Nicholas Marriott
5a820e63b7 Update CHANGES. 2026-09-30 14:38:50 +01:00
Nicholas Marriott
8d3172f4d4 Fix test on macOS. 2026-09-30 06:46:05 +01:00
tmux update bot
e04f7876c9 Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master:
  Add NULL checks for clients that may not have identified yet, GitHub issue 5663.
2026-09-29 23:00:12 +00:00
nicm
4a98a9dea8 Add NULL checks for clients that may not have identified yet, GitHub
issue 5663.
2026-09-29 23:00:10 +00:00
Nicholas Marriott
5e4b8cc39e Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master:
  Do not format times that localtime_r and ctime_r cannot convert, from Alexandre Fiori.
  Add a maximum repeat size as well as count.
2026-09-29 20:08:52 +01:00
nicm
c34432980f Do not format times that localtime_r and ctime_r cannot convert, from
Alexandre Fiori.
2026-09-29 19:03:18 +00:00
nicm
1bb90bdd62 Add a maximum repeat size as well as count. 2026-09-29 19:03:18 +00:00
Nicholas Marriott
ffbbdcc852 Test for 5659 from Alexandre Fiori. 2026-09-29 15:00:09 +01:00
Nicholas Marriott
30e6a552b4 More repeat tests. 2026-09-29 12:58:51 +01:00
Nicholas Marriott
3a5df8780f Fix test socket names. 2026-09-29 06:50:38 +01:00
tmux update bot
bef6f61b6f Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master:
  Do not try to decode UTF-8 if it is too long to match the pattern.
  Do not allocate for repeat inside loop but allocate up front and just copy in the loop.
2026-09-28 21:22:23 +00:00
nicm
95aaa6cc2a Do not try to decode UTF-8 if it is too long to match the pattern. 2026-09-28 21:22:21 +00:00
nicm
389908d001 Do not allocate for repeat inside loop but allocate up front and just
copy in the loop.
2026-09-28 21:22:21 +00:00
tmux update bot
4bb0cc98d3 Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master:
  Copy all #s at once when multiple are seen before [ rather than only copying one at a time which can be very slow.
  Check time every iteration for expensive repeat loop.
2026-09-28 17:33:04 +00:00
nicm
5fbfaca6a8 Copy all #s at once when multiple are seen before [ rather than only
copying one at a time which can be very slow.
2026-09-28 17:26:42 +00:00
nicm
c4eb4ab5df Check time every iteration for expensive repeat loop. 2026-09-28 17:26:42 +00:00
Nicholas Marriott
6ad23bb99c Update test. 2026-09-28 17:55:47 +01:00
Nicholas Marriott
6a5745c771 Some more crazy stuff to make systemd OOM work properly (stop it killing entire
process groups insead of a single process), GitHub issue 5640 from Damian
Nowak.
2026-09-28 17:36:52 +01:00
tmux update bot
8a9122df1d Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master:
  Use mode screen for cursor not base which may be wrong during synchronized updates. GitHub issue 5648 from bugreporter23 at gmail dot com.
2026-09-28 15:30:43 +00:00
nicm
5e5e15f6c7 Use mode screen for cursor not base which may be wrong during
synchronized updates. GitHub issue 5648 from bugreporter23 at gmail dot
com.
2026-09-28 15:30:41 +00:00