Commit Graph

  • bad8d0fd20 Do not call window_unzoom from window_destroy because it will try to add a notification which will get confused because the reference count is already zero and end up back in window_destroy and a double free. Instead, just destroy the layouts directly. Noticed by Thomas Adam. nicm 2015-07-17 13:09:07 +00:00
  • b886393042 Merge branch 'obsd-master' Thomas Adam 2015-07-17 10:01:09 +01:00
  • 3192178f15 Initialize client fd to -1 as well, from Bobby Powers. nicm 2015-07-17 06:53:47 +00:00
  • 8c96e2a6d9 Implement osdep_get_name and osdep_get_cwd for AIX, from J Raynor. Nicholas Marriott 2015-07-15 08:46:35 +01:00
  • 5ffb869e1a Merge branch 'master' of github.com:tmux/tmux Nicholas Marriott 2015-07-14 08:15:05 +01:00
  • bed3069fd7 Add _LINUX_SOURCE_COMPAT on AIX. Nicholas Marriott 2015-07-14 08:14:35 +01:00
  • dcc28434f4 Merge branch 'obsd-master' Thomas Adam 2015-07-13 20:01:08 +01:00
  • 8dcea2cc14 Reset G0/G1 state when resetting everything else with send-keys -R. nicm 2015-07-13 18:45:18 +00:00
  • 4e637b1b61 Ignore environment variables that are too long to send to the server. nicm 2015-07-13 18:10:26 +00:00
  • 07aef38591 Merge branch 'obsd-master' Thomas Adam 2015-07-13 18:01:09 +01:00
  • e45d624df2 Fix line endings. nicm 2015-07-13 15:51:31 +00:00
  • c7374c31c4 Initialize cwd fd to -1 so that we don't close fd 0 if the client is destroyed before it is changed. Also allow ttyname() to fail. Fixes problems when running out of file descriptors reported by Bruno Sutic. nicm 2015-07-13 15:49:31 +00:00
  • 81069f66f9 Add a format to show if client is a control client. From Bruno Sutic. nicm 2015-07-13 15:37:26 +00:00
  • 38d4d69639 Merge branch 'obsd-master' Thomas Adam 2015-07-13 16:01:09 +01:00
  • 6308c48efd Add a -s flag to show-environment to output Bourne shell commands a la ssh-agent. Mostly from Cam Hutchison with some changes by me. nicm 2015-07-13 13:36:29 +00:00
  • cc768d77ec Revert to marking lines as wrapped on newlines, fixes problems with capturep -J. nicm 2015-07-13 13:28:50 +00:00
  • 73f9f0334c Check for flock in libbsd for AIX, and remove some getopt.h includes. From J Raynor. Nicholas Marriott 2015-07-13 14:19:50 +01:00
  • 28c33f67bc Merge branch 'master' of github.com:tmux/tmux Nicholas Marriott 2015-07-12 19:47:47 +01:00
  • 235e0bd65a Update imsg*.[ch] from OpenBSD, including bzero->memset. Nicholas Marriott 2015-07-12 19:46:58 +01:00
  • 9a0ce98c54 Merge branch 'obsd-master' Thomas Adam 2015-07-06 16:01:10 +01:00
  • b298478435 Update environment with -E when attach-session used on an already attached session or switch-client used on the current session. From Cam Hutchison. nicm 2015-07-06 14:24:57 +00:00
  • 78723af99f README: Clarify SYNCING is under the ISC Thomas Adam 2015-06-28 12:01:19 +01:00
  • 8b8a007e8e Merge branch 'master' of github.com:tmux/tmux Nicholas Marriott 2015-06-20 08:45:19 +01:00
  • 8abcea18a2 Remove monitor-content options which have been removed, from Guy Hughes. Nicholas Marriott 2015-06-20 08:43:55 +01:00
  • 0ef3e28609 Merge branch 'obsd-master' Thomas Adam 2015-06-19 02:01:10 +01:00
  • f557c7d8ca Use the SRCDST define for usage. nicm 2015-06-18 23:56:01 +00:00
  • b43b13faf9 Use xsnprintf. nicm 2015-06-18 23:55:24 +00:00
  • 164ba041c9 Remove a stray : and tweak paragraph. nicm 2015-06-18 23:53:56 +00:00
  • 86018a3947 Merge branch 'obsd-master' Thomas Adam 2015-06-17 22:01:13 +01:00
  • 85120b37ea Change break-pane to take target and source panes (-t and -s) in line with other commands, from Thomas Adam. nicm 2015-06-17 19:56:08 +00:00
  • 21a2ccc5f1 Merge branch 'obsd-master' Thomas Adam 2015-06-17 20:01:12 +01:00
  • 84f0622c85 Break cmdq_continue inner loop into a helper function. nicm 2015-06-17 17:02:15 +00:00
  • a584e11d6b Merge branch 'obsd-master' Thomas Adam 2015-06-17 18:01:07 +01:00
  • 0ff335961e Move the shuffle code from new-window -a into a function and add a -a flag for move-window too. From Thomas Adam. nicm 2015-06-17 16:50:28 +00:00
  • 021cdbe1c0 Use an explicit job state instead of avoid closing our side of the socketpair and setting it to -1 to mark when the other side is closed. This avoids closing it while the libevent bufferevent still has it (it could try to add it to the polled set which some mechanisms don't like). Fixes part a problem reported by Bruno Sutic. nicm 2015-06-17 16:44:49 +00:00
  • 9fdc3a069a Merge branch 'obsd-master' Thomas Adam 2015-06-15 14:01:09 +01:00
  • d96ab34019 Add window_activity format, from Thomas Adam based on a diff originally from propos6 at gmail dot com. nicm 2015-06-15 10:58:01 +00:00
  • 37005d04a9 Merge branch 'obsd-master' Thomas Adam 2015-06-14 12:01:10 +01:00
  • 29c29e7717 Add a format for client PID (client_pid) and server PID (pid). Diff for client_pid from Thomas Adam. nicm 2015-06-14 10:07:44 +00:00
  • 48a46e066e Merge branch 'obsd-master' Thomas Adam 2015-06-10 16:01:08 +01:00
  • ba665e24e3 Merge branch 'master' of github.com:tmux/tmux Nicholas Marriott 2015-06-10 15:41:35 +01:00
  • dca084e703 Don't leak dotfd if fchdir fails. From ettl dot martin78 at gmail dot com. Nicholas Marriott 2015-06-10 15:39:23 +01:00
  • bbc0898060 wp->tty is a char [] not a char * so it can't be NULL. From Thomas Adam. nicm 2015-06-10 12:56:04 +00:00
  • 0ff172fabf Merge branch 'obsd-master' Thomas Adam 2015-06-09 10:01:10 +01:00
  • a412dd616f Fix loop comparison broken in last commit, from Thomas Adam. nicm 2015-06-09 07:07:06 +00:00
  • 02a848d77c It isn't supposed to... Nicholas Marriott 2015-06-08 09:46:14 +01:00
  • 7acc4addb5 Merge branch 'obsd-master' Thomas Adam 2015-06-07 23:42:25 +01:00
  • c4e811e519 Add -E flag when attaching or switching client to bypass update-environment, from Steven Lu. nicm 2015-06-07 21:39:39 +00:00
  • a5c55e4393 Update TODO. Nicholas Marriott 2015-06-07 08:36:03 +01:00
  • ed6c036ee3 Use ints for the calculations rather than u_char, they could end up signed. nicm 2015-06-05 22:50:27 +00:00
  • 55b96a5bd5 Handle the RGB colour escape sequence (\033[38;2;<r>;<g>;<b>m and 48;2) like xterm(1) does, by mapping to the nearest in the 256 colour palette. nicm 2015-06-05 22:33:39 +00:00
  • 1cb073d48e Use fixed colour tables rather than generated and do a quick search for exact match before doing the distance comparison. nicm 2015-06-05 22:01:17 +00:00
  • 641a9cd3f5 Similarly, for sessions use a callback to free rather than checking every loop. nicm 2015-06-05 18:18:32 +00:00
  • 10e90ae01f Change deref to the more sensible unref, and add a couple I missed before. nicm 2015-06-05 18:06:30 +00:00
  • 8c93b768e4 Instead of putting dead clients on a list and checking it every loop, use event_once to queue a callback to deal with them. Also dead clients with references would never actually be freed because the wrap-up functions (the callback for stdin, or status_prompt_clear) would never be called. So call them in server_client_lost. nicm 2015-06-05 18:01:12 +00:00
  • b0782df8a6 Do not use the key variable uninitialized (in a debug log statement), reported by jungleboogie0 at gmail dot com. nicm 2015-06-05 15:10:13 +00:00
  • f7598b8a26 Only need *.ch in compat. Nicholas Marriott 2015-06-05 12:44:15 +01:00
  • 2f586905fc Fix a warning. nicm 2015-06-05 09:09:08 +00:00
  • 4219939c10 Make it so that if a window or session target is prefixed with an =, only an exact name or index match is accepted, no special character, prefix match, or fnmatch. nicm 2015-06-05 08:14:16 +00:00
  • 6b2129696f Move the nested check from client to server and compare the client tty name to all the pane pty names instead of comparing socket paths. This means that "new -d" will work without unsetting $TMUX. nicm 2015-06-04 23:27:51 +00:00
  • dc0d34e137 tweak SYNOPSIS and usage(); jmc 2015-06-04 20:34:22 +00:00
  • 83a70172a4 Merge branch 'obsd-master' Thomas Adam 2015-06-04 16:01:07 +01:00
  • 4a6c06d6a9 Make unsetting a global option restore it to the default. Diff lying around for a while, I have forgotten who suggested it :-/. nicm 2015-06-04 14:29:33 +00:00
  • 02e348c069 Merge branch 'obsd-master' Thomas Adam 2015-06-04 12:59:41 +01:00
  • a863834574 Add support for a single "marked pane". There is one marked pane in the server at a time; it may be toggled or cleared with select-pane -m and -M (the border is highlighted). A new target '~' or '{marked}' specifies the marked pane to commands and it is the default target for the swap-pane and join-pane -s flag (this makes them much simpler to use - mark the source pane and then change to the target pane to run swapp or joinp). nicm 2015-06-04 11:43:51 +00:00
  • 1de74e27e5 Spaces -> tabs. Nicholas Marriott 2015-06-04 11:40:27 +01:00
  • d058e963fd Update mailmap. Nicholas Marriott 2015-06-04 11:36:44 +01:00
  • 13808ccede Merge branch 'obsd-master' Thomas Adam 2015-06-04 11:17:39 +01:00
  • a3edfd9e84 teminal -> terminal, from Corey Farwell. nicm 2015-06-04 09:42:29 +00:00
  • 75b70be4a6 Merge branch 'master' of github.com:tmux/tmux Nicholas Marriott 2015-06-04 10:38:04 +01:00
  • b67db455a8 Update TODO with some items from old SF tickets. Nicholas Marriott 2015-06-04 10:37:39 +01:00
  • 2c29b3e82c SYNCING: Few tweaks Thomas Adam 2015-06-04 10:35:40 +01:00
  • 8fcac1b794 SYNCING: Update for GH Thomas Adam 2015-06-04 09:26:35 +01:00
  • 75061cb45d I no longer need to care about GCC 3. Nicholas Marriott 2015-06-04 08:50:20 +01:00
  • 20598dff25 Note version this happened. Nicholas Marriott 2015-06-04 08:47:23 +01:00
  • 0b22d574e0 Update FAQ for new behaviour. Nicholas Marriott 2015-06-04 08:46:49 +01:00
  • 1df39aa962 I don't think we should carry around scripts. I'm not too sure about examples/ at all, nobody is maintaining it... Nicholas Marriott 2015-06-04 08:26:50 +01:00
  • 9d80ad16f9 Remove old tools. Nicholas Marriott 2015-06-04 08:25:39 +01:00
  • c0a790453c Add a couple of presentations I wrote a few years ago. One for the ill-fated AsiaBSDCon in 2011 (canceled due to Fukushima) and the other for LinuxTag 11 in Berlin. Nicholas Marriott 2015-06-04 08:23:40 +01:00
  • dbc5d7b331 Fix clone URL. Nicholas Marriott 2015-06-04 01:27:47 +01:00
  • 3ed03df23f Remove this file. Nicholas Marriott 2015-06-04 01:26:03 +01:00
  • 32bc8f4dd4 HTML bits are now elsewhere. Nicholas Marriott 2015-06-04 01:21:41 +01:00
  • d2b35e19cd No more SF. Nicholas Marriott 2015-06-04 00:44:22 +01:00
  • 89131c3e90 No $Id$. Nicholas Marriott 2015-06-04 00:38:01 +01:00
  • fc2fb0eb95 Update mailing list addresses. Nicholas Marriott 2015-06-03 18:57:35 +01:00
  • dfd72f5250 -$Id$. Nicholas Marriott 2015-06-03 18:42:36 +01:00
  • 11ae6d16e5 $Id$ -> $OpenBSD$. Nicholas Marriott 2015-06-03 18:35:44 +01:00
  • 09bcbc57da $Id$ -> $OpenBSD$. Nicholas Marriott 2015-06-03 18:28:26 +01:00
  • 1c3e1bae41 Remove $Id$. Nicholas Marriott 2015-06-03 18:26:25 +01:00
  • 3821ca4917 Update TODO. Nicholas Marriott 2015-06-02 15:16:13 +01:00
  • 7bf5d4b946 Merge branch 'obsd-master' Thomas Adam 2015-06-01 16:01:19 +01:00
  • a3c6172495 Missing t at end of response, from Vincent Bernat. nicm 2015-06-01 13:59:57 +00:00
  • b675e6b2d5 Merge branch 'obsd-master' Thomas Adam 2015-06-01 12:01:17 +01:00
  • 58b50fb543 Clear signal handlers before event_reinit as apparently it can otherwise cause libevent to go strange. nicm 2015-06-01 09:20:19 +00:00
  • 7712e6f82b Merge branch 'obsd-master' Thomas Adam 2015-06-01 02:01:17 +01:00
  • 7e067cb9dc does not need syslog.h deraadt 2015-05-31 23:27:06 +00:00
  • c39dfb17ae Merge branch 'obsd-master' Thomas Adam 2015-05-30 02:01:18 +01:00
  • 2a8c2648f0 Don't use special strings if #() commands fail, just remove the format (as if the command produced nothing). Makes constructions that can fail like '#(test whatever && echo foo)' work as they did before. nicm 2015-05-29 23:26:52 +00:00
  • 74c755f2ab Expand formats again inside #(), and free the temporaries. nicm 2015-05-29 23:12:38 +00:00
  • a55e569af5 Use RB_MIN to get the lowest index for the current window when creating grouped sessions, rather than using RB_ROOT. nicm 2015-05-29 23:02:27 +00:00