Commit Graph

11799 Commits

Author SHA1 Message Date
Nicholas Marriott
9c65d349e8 Tweak times in tests. 2026-07-13 22:08:58 +01:00
Nicholas Marriott
2818069d5f Merge pull request #5389 from YayoRazo/fix/prompt-history-getline
fix(compat): drop fgetln compat shim, migrate prompt-history.c to getline
2026-07-13 21:25:10 +01:00
tmux update bot
2f0308ea4d Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master:
  Replace last use of fgetln with getline, GitHub issue 5389 from Yayo Razo.
  Add hooks to customize mode.
2026-07-13 20:22:00 +00:00
nicm
b1c347ee0c Replace last use of fgetln with getline, GitHub issue 5389 from Yayo Razo. 2026-07-13 20:21:59 +00:00
nicm
fba5083b58 Add hooks to customize mode. 2026-07-13 20:21:59 +00:00
Thomas Adam
9c9477ae76 Tweak previous; include SYNCING.md 2026-07-13 20:30:47 +01:00
Thomas Adam
e4dbd11d44 doc: rewrite SYNCING and reformat to markdown
Rewrite the SYNCING document to reflect that everything runs on Github.

Add examples on how to deal with merge conflicts.

Also reformat to markdown so any examples are more obvious in different
renderers.
2026-07-13 20:29:35 +01:00
Yayo Razo
c3e38b317d fix(compat): drop fgetln compat shim, migrate prompt-history.c to getline
Following up on the comment on #5365 - this drops fgetln from
prompt-history.c (its only remaining caller) in favor of getline, and
removes the fgetln compat shim entirely since nothing references it
anymore: the compat.h declaration, compat/fgetln.c itself, and its
entry in configure.ac's AC_REPLACE_FUNCS list.

fgetln doesn't null-terminate its returned buffer when the final line
in the file lacks a trailing newline, so the old loop had a second
branch to heap-copy and manually terminate that case. getline always
null-terminates regardless, so that branch goes away and the loop
becomes uniform.

Verified with a real build (ubuntu-24.04 container, same
--enable-utf8proc --enable-asan configure CI uses): crafted a history
file with a normal entry, a blank line, and a final entry with no
trailing newline at EOF (the exact case the removed branch existed
for), loaded it through a real ASan-built tmux via show-prompt-history,
all three entries came back correctly. Full regress suite is otherwise
clean against this change.
2026-07-13 13:03:58 -06:00
tmux update bot
f75ef5ca1c Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master:
  Add keys and menu items for copy mode line numbers, and a menu item for auto refresh.
2026-07-13 18:59:03 +00:00
nicm
8fbbde7035 Add keys and menu items for copy mode line numbers, and a menu item for
auto refresh.
2026-07-13 18:59:02 +00:00
Nicholas Marriott
2dc05ae328 Add to alerts tests. 2026-07-13 19:52:27 +01:00
tmux update bot
511fe53846 Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master:
  Add new-pane -M to create a new pane from a mouse binding and bind to C-MouseDrag1Pane, removing the old ctrl-click-to-swap-pane binding.
2026-07-13 17:43:10 +00:00
nicm
658e087f7a Add new-pane -M to create a new pane from a mouse binding and bind to
C-MouseDrag1Pane, removing the old ctrl-click-to-swap-pane binding.
2026-07-13 17:43:09 +00:00
tmux update bot
dba85ee32e Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master:
  Add pane-activity event.
2026-07-13 16:21:15 +00:00
nicm
b91086a5c8 Add pane-activity event. 2026-07-13 16:21:14 +00:00
Nicholas Marriott
4cd39ee33e new-pane mouse test. 2026-07-13 17:10:04 +01:00
tmux update bot
e3ef97b6b4 Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master:
  Add some additional simple events.
  fix window_copy_mouse_in_selection() indentation; ok nicm@
  Work out a single layout for the entire prompt so it can all be drawn together, fixes centered prompts. GitHub issue 5328.
  Allow drag on a selection to modify it, from Michael Grant.
  Make split-window inside a floating pane work more nicely and not immediately create an overlapping pane, from Dane Jensen.
  Set other cell when creating layout set, from Dane Jensen.
  Size comparison should be >= not >, from Yayo Razo.
  Remove worflow from master
2026-07-13 14:35:35 +00:00
nicm
e00a1a3e26 Add some additional simple events. 2026-07-13 14:35:33 +00:00
jsg
006cce5e4d fix window_copy_mouse_in_selection() indentation; ok nicm@ 2026-07-13 14:35:33 +00:00
nicm
4a06a1f296 Work out a single layout for the entire prompt so it can all be drawn
together, fixes centered prompts. GitHub issue 5328.
2026-07-13 14:35:33 +00:00
nicm
fe1b877410 Allow drag on a selection to modify it, from Michael Grant. 2026-07-13 14:35:33 +00:00
nicm
2b091d91d3 Make split-window inside a floating pane work more nicely and not
immediately create an overlapping pane, from Dane Jensen.
2026-07-13 14:35:33 +00:00
nicm
6d227a8479 Set other cell when creating layout set, from Dane Jensen. 2026-07-13 14:35:33 +00:00
nicm
447d804a3a Size comparison should be >= not >, from Yayo Razo. 2026-07-13 14:35:33 +00:00
Nicholas Marriott
687c6b9cc0 Regress for more hooks. 2026-07-13 13:57:31 +01:00
Nicholas Marriott
b2e2fe824d Add scroll regress. 2026-07-13 11:32:28 +01:00
Thomas Adam
1f6385e7bb build: remove openbsd sync job
This only needs to run from the openbsd-cutover repository and will no
longer be merged into thisd repo.
2026-07-13 11:03:46 +01:00
Thomas Adam
309119f659 Remove worflow from master 2026-07-13 10:54:27 +01:00
tmux update bot
884ae3f8da Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master:
  build: run every fifteen minutes
2026-07-13 09:42:03 +00:00
Nicholas Marriott
d9b953d5c6 Create SECURITY.md 2026-07-13 10:29:28 +01:00
Nicholas Marriott
e0014bbc7c Add regress tests for events code. 2026-07-13 10:23:38 +01:00
Thomas Adam
d03de4986a build: run every fifteen minutes 2026-07-13 09:27:05 +01:00
Thomas Adam
6126988781 portable: add Makefile.am 2026-07-13 09:22:53 +01:00
Thomas Adam
25e2e1d671 Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master:
  build: don't exit
  build: always attempt portable merge
  build: capture openbsd-base before filtering
  build: fetch cutover master before merge
  Use _exit in child after fork, from Yayo Razo in GitHub issue 5376.
  Add missing calloc check and use fatal. Prompted by a similar change from Yayo Razo.
  actions: use published openbsd-git as base update
  github actions: automate updates
  Do not make pty fds blocking again until all the data has been consumed or control mode clients can get stuck, GitHub issue 5356 from Ben Maurer.
  Add formats and events for OSC 133 commmands, as well as a -T flag to set-hook -B to only fire when the format is true.
  Replace the notification system with events. Events can carry a payload of additional payload (to reduce problems with lifetime of objects) and are delivered to one or more event sinks. This is more powerful and reduces the complex dependencies between control mode and hooks. Events are now used for hooks, control mode notifications and for monitors (set-hook -B).
2026-07-13 09:22:25 +01:00
Thomas Adam
e6eb26518b build: don't exit 2026-07-13 09:13:28 +01:00
Thomas Adam
8b2bc1a384 build: always attempt portable merge 2026-07-13 09:10:24 +01:00
Thomas Adam
0ce72059e6 build: capture openbsd-base before filtering 2026-07-13 09:05:10 +01:00
Thomas Adam
f80d3f6123 build: fetch cutover master before merge 2026-07-13 09:00:47 +01:00
nicm
0925c9846b Use _exit in child after fork, from Yayo Razo in GitHub issue 5376. 2026-07-13 07:57:44 +00:00
nicm
3612a9a605 Add missing calloc check and use fatal. Prompted by a similar change
from Yayo Razo.
2026-07-13 07:57:44 +00:00
Thomas Adam
cc8e0f2f67 actions: use published openbsd-git as base update 2026-07-13 08:50:49 +01:00
Nicholas Marriott
a662981f10 Bump a time limit. 2026-07-13 07:08:05 +01:00
Nicholas Marriott
d77c9dc6aa Tweak BIDI test. 2026-07-12 23:18:47 +01:00
Nicholas Marriott
8ac3fcedca Do not reuse sockets so much to avoid problems with slow server shutdown. 2026-07-12 22:03:16 +01:00
Nicholas Marriott
ea236c12a6 Merge pull request #5382 from YayoRazo/fix/sixel-saved-images-uaf
fix(screen): free alternate-screen images on screen destroy
2026-07-12 21:40:02 +01:00
Nicholas Marriott
a53a0aa0b5 Merge pull request #5365 from YayoRazo/fix/getline-fgetln-overflow
fix(compat): guard buffer size multiplication in getline
2026-07-12 21:18:37 +01:00
Nicholas Marriott
5e3db12c07 No need for ASAN_OPTIONS. 2026-07-12 21:02:30 +01:00
Nicholas Marriott
4f981a2506 Turn on ASAN for macOS regress. 2026-07-12 20:59:11 +01:00
Thomas Adam
b602dc57b1 github actions: automate updates 2026-07-12 17:24:37 +01:00
Nicholas Marriott
330bedfb47 Build with ASAN on macOS by default. 2026-07-12 13:26:25 +01:00