mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-03 19:50:49 +02:00
03c1c1cd9f731a8a5a066855077e91e31d2baf34
Setting the cmdlist pointer in the bind-key to NULL to prevent it being freed after the command is executing is bogus because it may still be needed if the same command is going to be executed again (for example if you "bind-key a bind-key b ..."). Making a copy is hard, so instead add a reference count to the cmd_list. While here, also print bind-key -n and the rest of the flags properly. Fixes problem reported by mcbride@.
Ensure we overwrite wide characters properly, and never overwrite characters we weren't overlapping.
Description
Instant Terminal Sharing
Languages
C
90.6%
Roff
7.1%
M4
1%
Awk
0.6%
Makefile
0.4%
Other
0.2%