debian/0000755000000000000000000000000012226475355007201 5ustar debian/docs0000644000000000000000000000003112131333241010024 0ustar README TODO FAQ examples debian/changelog0000644000000000000000000004753112226475206011060 0ustar tmux (1.8-5) unstable; urgency=low * Cherry-pick fixes from upstream Git: + 5532766b19: fix last after movew -r + c103f2fbcb: consistently clear window flags for all sessions + 21bca549d3: consider only visible panes for resize-pane-mouse -- Romain Francoise Sun, 13 Oct 2013 12:48:38 +0200 tmux (1.8-4) unstable; urgency=low * Cherry-pick fixes from upstream Git: + 9fb9f78e43: UTF-8 mangled in send-keys + 965edf8a5c: crash when window in a grouped session is killed + b0b5cad496: memory leak when grouped sessions are destroyed + 27364345bf: avoid processing NULL client formats + 939f796f08: memory leak with repeated formats -- Romain Francoise Fri, 02 Aug 2013 19:39:29 +0200 tmux (1.8-3) unstable; urgency=low * Cherry-pick additional fixes from upstream Git: + 772d61f3ed: reset focus reporting on hard reset + 25c430b1cd: off-by-one buffer overflow in cmd_print() + 88a4da9747: cursor position overflow when reflowing -- Romain Francoise Sat, 25 May 2013 18:53:11 +0200 tmux (1.8-2) unstable; urgency=low * Cherry-pick important fixes from upstream Git: + 9fcda95a6f: hang in if-shell/run-shell + caa8290510: missing client context in source-file + 5dda1abc32: server crash with `remain-on-exit' and focus reporting + 46c7dbef0f: grouped window sizes not properly recalculated * debian/control: Use canonical locations in Vcs-* fields. -- Romain Francoise Tue, 23 Apr 2013 20:19:26 +0200 tmux (1.8-1) unstable; urgency=low * New upstream release. * Bump Standards-Version to 3.9.4. * With Ferdinand's blessing, set myself as maintainer to better reflect reality. -- Romain Francoise Tue, 26 Mar 2013 22:33:39 +0100 tmux (1.7-3) unstable; urgency=low * Upload to unstable. -- Romain Francoise Fri, 19 Oct 2012 20:06:08 +0200 tmux (1.7-2) experimental; urgency=low * Add build-dep on pkg-config for dh-autoreconf. -- Romain Francoise Sat, 13 Oct 2012 15:37:36 +0200 tmux (1.7-1) experimental; urgency=low * New upstream release. * Use dh-autoreconf to update upstream's old config.{guess,sub} scripts. -- Romain Francoise Sat, 13 Oct 2012 14:55:38 +0200 tmux (1.7~z20121007-1) experimental; urgency=low * New upstream snapshot, from Git commit 43d2b6a648. -- Romain Francoise Sun, 07 Oct 2012 12:43:23 +0200 tmux (1.7~z20120929-1) experimental; urgency=low * New upstream snapshot, from Git commit 80b5c0e076. -- Romain Francoise Sat, 29 Sep 2012 16:36:18 +0200 tmux (1.7~svn2867-1) experimental; urgency=low * New upstream snapshot from Subversion (r2867). -- Romain Francoise Fri, 31 Aug 2012 18:03:41 +0200 tmux (1.7~svn2845-1) experimental; urgency=low * New upstream snapshot from Subversion (r2845). -- Romain Francoise Wed, 11 Jul 2012 21:57:13 +0200 tmux (1.7~svn2829-1) experimental; urgency=low * New upstream snapshot from Subversion (r2829). -- Romain Francoise Sun, 24 Jun 2012 21:39:54 +0200 tmux (1.7~svn2819-1) experimental; urgency=low * New upstream snapshot from Subversion (r2819). * Warn about protocol change in debian/NEWS. -- Romain Francoise Wed, 30 May 2012 19:49:57 +0200 tmux (1.7~svn2788-1) experimental; urgency=low * New upstream snapshot from Subversion (r2788). -- Romain Francoise Fri, 04 May 2012 18:03:11 +0200 tmux (1.7~svn2773-2) experimental; urgency=low * Revert automatic-rename changes from r2773. -- Romain Francoise Tue, 10 Apr 2012 19:14:58 +0200 tmux (1.7~svn2773-1) experimental; urgency=low * New upstream snapshot from Subversion (r2773). -- Romain Francoise Tue, 10 Apr 2012 18:49:54 +0200 tmux (1.7~svn2760-1) experimental; urgency=low * New upstream snapshot from Subversion (r2760). -- Romain Francoise Fri, 30 Mar 2012 19:11:50 +0200 tmux (1.7~svn2749-1) experimental; urgency=low * New upstream snapshot from Subversion (r2749). -- Romain Francoise Sun, 18 Mar 2012 12:42:10 +0100 tmux (1.7~svn2717-1) experimental; urgency=low * New upstream snapshot from Subversion (r2717). * Quote backslash in examples/screen-keys.conf to avoid syntax error (closes: #662250). * Bump Standards-Version to 3.9.3. -- Romain Francoise Thu, 08 Mar 2012 20:19:30 +0100 tmux (1.7~svn2703-1) experimental; urgency=low [ Romain Francoise ] * New upstream snapshot from Subversion (r2703). [ Colin Watson ] * Use maintscript support in dh_installdeb rather than writing out dpkg-maintscript-helper commands by hand. We now simply Pre-Depend on a new enough version of dpkg rather than using 'dpkg-maintscript-helper supports' guards, leading to more predictable behaviour on upgrades (closes: #659794). -- Romain Francoise Mon, 20 Feb 2012 21:15:09 +0100 tmux (1.7~svn2691-1) experimental; urgency=low * New upstream snapshot from Subversion (r2691). -- Romain Francoise Tue, 31 Jan 2012 20:22:50 +0100 tmux (1.6-2) unstable; urgency=low [ Colin Watson ] * Use maintscript support in dh_installdeb rather than writing out dpkg-maintscript-helper commands by hand. We now simply Pre-Depend on a new enough version of dpkg rather than using 'dpkg-maintscript-helper supports' guards, leading to more predictable behaviour on upgrades (closes: #659794). [ Romain Francoise ] * Quote backslash in examples/screen-keys.conf to avoid syntax error (closes: #662250). * Bump Standards-Version to 3.9.3. -- Romain Francoise Sat, 17 Mar 2012 11:42:28 +0100 tmux (1.6-1) unstable; urgency=low * New upstream release (closes: #657026). -- Romain Francoise Mon, 23 Jan 2012 19:20:48 +0100 tmux (1.6~svn2670-1) experimental; urgency=low * New upstream snapshot from Subversion (r2670). * The new window option 'allow-rename' can be used to disable the screen title setting escape sequence (closes: #654882). -- Romain Francoise Sat, 21 Jan 2012 21:38:18 +0100 tmux (1.6~svn2647-2) experimental; urgency=low * Disable cwd detection in FreeBSD osdep code to fix FTBFS on kfreebsd. * Refresh, clean up and add DEP-3 headers to patches. -- Romain Francoise Sat, 10 Dec 2011 19:38:48 +0100 tmux (1.6~svn2647-1) experimental; urgency=low * New upstream snapshot from Subversion (r2647). * The working directory for new processes is now taken from the active window if there is one (closes: #644781). -- Romain Francoise Fri, 09 Dec 2011 20:51:42 +0100 tmux (1.6~svn2642-1) experimental; urgency=low * New upstream snapshot from Subversion (r2642). * Add -Wl,--as-needed to LDFLAGS to lose extra dependency on libncurses5. -- Romain Francoise Fri, 25 Nov 2011 18:04:01 +0100 tmux (1.6~svn2630-2) experimental; urgency=low * Redo build flags handling: + Enable hardening flags via dpkg-buildflags, not hardening-includes. + Switch to debhelper compat level 9 to have build flags exported automatically. This adds back -O2, which had gone missing. + Adjust build-depends accordingly. * Enable parallel build in debhelper. -- Romain Francoise Thu, 03 Nov 2011 22:55:04 +0100 tmux (1.6~svn2630-1) experimental; urgency=low * New upstream snapshot from Subversion (r2630). -- Romain Francoise Tue, 01 Nov 2011 10:42:03 +0100 tmux (1.6~svn2608-2) experimental; urgency=low * Switch to libevent 2.0 and disable the epoll backend (closes: #631984). * Add /usr/bin/tmux to /etc/shells (closes: #644813). -- Romain Francoise Sun, 09 Oct 2011 17:52:50 +0200 tmux (1.6~svn2608-1) experimental; urgency=low * New upstream snapshot from Subversion (r2608). -- Romain Francoise Mon, 03 Oct 2011 21:13:21 +0200 tmux (1.5-3) unstable; urgency=low * Add /usr/bin/tmux to /etc/shells (closes: #644813). * Switch to libevent 2.0 and disable the epoll backend (closes: #631984). * Redo build flags handling: + Enable hardening flags via dpkg-buildflags, not hardening-includes. + Switch to debhelper compat level 9 to have build flags exported automatically. This adds back -O2, which had gone missing. + Adjust build-depends accordingly. * Enable parallel build in debhelper. * Add -Wl,--as-needed to LDFLAGS to lose extra dependency on libncurses5. -- Romain Francoise Mon, 28 Nov 2011 21:07:12 +0100 tmux (1.5-2) unstable; urgency=low * Disable the tmux-cleanup init script on upgrade (the file was removed in 1.4-7). * Fix typo in examples/screen-keys.conf (closes: #635349). -- Romain Francoise Sat, 17 Sep 2011 14:58:54 +0200 tmux (1.5-1) unstable; urgency=low [ Karl Ferdinand Ebert ] * New upstream version 1.5 which fixes incorrect result from tmux has-session (Closes: #621138). * Rearrange all patches: - Remove 08_layout_set.diff (applied upstream). - Remove 09_fix_gnome_terminal_keycodes (included in upstream). - Remove 99_upstream.diff (no difference now). - New configure scripts forces to set install_prefix and support for HURD and kFreeBSD else where. - Refresh 07_fix_hyphen.diff and update series. [ Romain Francoise ] * debian/rules: Don't override dh_auto_clean. * Remove debian/patches/01_install_prefix.diff. -- Romain Francoise Sun, 10 Jul 2011 13:10:23 +0200 tmux (1.4-9) unstable; urgency=low [ Dustin Kirkland ] * debian/patches/09_fix_gnome_terminal_keycodes.diff: - enable tmux handling of gnome-terminal's shift/ctrl/alt + F1-F4 - patch submitted and accepted upstream [ Karl Ferdinand Ebert ] * Bump standard version to 3.9.2 (no changes). -- Karl Ferdinand Ebert Sat, 25 Jun 2011 11:47:11 +0200 tmux (1.4-8) unstable; urgency=low * Fix "tmux segfaults with [lost server] if second pane is closed after third pane has been broke out" by patch 99_upstream.diff (Closes: #622677). -- Karl Ferdinand Ebert Tue, 10 May 2011 23:39:17 +0200 tmux (1.4-7) unstable; urgency=low [ Karl Ferdinand Ebert ] * Drop Debian-specific socket handling changes: + debian/patches/03_proper_socket_handling.diff, debian/patches/04_dropping_unnecessary_privileges.diff: Dropped. + debian/{init,tmux.lintian-overrides}: Removed, no longer necessary. + debian/rules: Remove dh_installinit and dh_fixperms invocations. [ Romain Francoise ] * debian/control: Remove reference to /var/run as socket location. * debian/copyright: Remove references to screen init script. * debian/{preinst,postinst,postrm}: Deal with disappearance of the /etc/init.d/tmux-cleanup script. * debian/NEWS: Mention socket handling changes. * Drop disabled patch debian/patches/06_hardening_write_return.diff. -- Romain Francoise Sat, 16 Apr 2011 19:41:04 +0200 tmux (1.4-6) unstable; urgency=high * Fix "Incorrect dropping of privileges allows users to obtain utmp group privileges" by adjusting patch 04_drop_unnecessary_privileges.diff to drop privileges at the caller side (Closes: #620304). -- Karl Ferdinand Ebert Sun, 03 Apr 2011 18:28:42 +0200 tmux (1.4-5) unstable; urgency=low * Fix "tmux segfaults with [lost server] if two panes are closed with tiled layout" by patch 08_layout_set.diff (Closes: #616641). * Update debian/copyright with regard to dropped upstream patches. -- Karl Ferdinand Ebert Sun, 06 Mar 2011 22:02:46 +0100 tmux (1.4-4) unstable; urgency=low * Drop build-conflicts against libevent-dev (>> 2.0). * Upload to unstable. -- Romain Francoise Wed, 16 Feb 2011 20:35:31 +0100 tmux (1.4-3) experimental; urgency=low * Move back to epoll on Linux until libevent's poll backend gets fixed (see #609444). * Add build-conflicts on libevent 2.0 for the time being, Debian's version is too old. -- Romain Francoise Thu, 13 Jan 2011 21:39:15 +0100 tmux (1.4-2) experimental; urgency=low * Cherry-pick upstream fix disabling epoll support in libevent to avoid server hangs. * Define PATH_MAX if it's missing to fix FTBFS on GNU/Hurd, thanks to Justus Winter (closes: #609333). -- Romain Francoise Sat, 08 Jan 2011 23:41:00 +0100 tmux (1.4-1) experimental; urgency=low * New upstream version; windows are no longer inappropriately set as hidden when sizes are recalculated (closes: #575193). * Drop debian/patches/99_upstream.diff. * debian/control: use versioned build-dependency on libevent-dev. -- Romain Francoise Tue, 28 Dec 2010 12:25:29 +0100 tmux (1.3-2) unstable; urgency=low [ Karl Ferdinand Ebert ] * Fix "/usr/bin/tmux: tmux crashes on attach-session" by deactivating 06_hardening_write_return.diff patch (Closes: #603542) * Fix FTBFS on hurd-i386, MAXHOSTNAMELEN isn't defined there. * Bump to standard version 3.9.1 (no changes needed). [ Romain Francoise ] * Combine upstream patches in a single 99_upstream.diff file. * Fix reference to /tmp as socket directory in the man page; we use /var/run/tmux. -- Karl Ferdinand Ebert Tue, 16 Nov 2010 22:29:30 +0100 tmux (1.3-1) unstable; urgency=low * New upstream version, fixes "tmux does not refresh console" (Closes: #575193). * Drop cherry-picked patches from upstream: 08_avoid_double_free.diff, 09_show_dead_windows.diff and 11_fix_crash_multiple_commands.diff. * Include cherry-picked patches from upstream: 13_server-client.c.diff, 14_server-window.c.diff and 15_window-copy.c.diff. * Refresh rest of patches. * Update debian/copyright. * Bump to standard version 3.9.0, no changes needed. * Document server protocol change in NEWS.Debian. -- Karl Ferdinand Ebert Fri, 23 Jul 2010 08:09:03 +0200 tmux (1.2-4) unstable; urgency=low * Add patch 11_fix_crash_multiple_commands.diff from upstream CVS. -- Karl Ferdinand Ebert Wed, 05 May 2010 12:53:51 +0200 tmux (1.2-3) unstable; urgency=low * Drop 10_no_zombies.diff, it causes a regression far worse than the bug it fixes (closes: #579353). -- Romain Francoise Tue, 27 Apr 2010 18:57:03 +0200 tmux (1.2-2) unstable; urgency=low * Make Homepage point to the website, not the SF project page. * Add patches 09_show_dead_windows.diff and 10_no_zombies.diff, both cherry-picked from upstream CVS. -- Romain Francoise Sun, 25 Apr 2010 15:59:14 +0200 tmux (1.2-1) unstable; urgency=low [ Karl Ferdinand Ebert ] * New upstream release, fixes "cannot find opposite of break-window" (Closes: #573616, #575989) * New build-depend on libevent-dev as upstream needs this now. * Bump to standard version 3.8.4 (no changes needed), adopted new source format and switched parts of debian/rules to dh_auto_*. * Add year 2010 to debian/copyright. * Refreshed patch 06_hardening_write_return.diff with help from Micah Cowan. * Add hardening-wrapper to build-depends (Closes: #576157) [ Romain Francoise ] * Add myself to Uploaders. * Add Vcs-Browser and Vcs-Git fields in debian/control. * Use hardening-includes rather than hardening-wrapper. * Simplify debian/rules further using dh(1). * Bump debhelper build-depends to >= 7.0.50~ for dh overrides. * Add debian/patches/08_avoid_double_free.diff. -- Romain Francoise Wed, 14 Apr 2010 21:50:36 +0200 tmux (1.1-1) unstable; urgency=low [ Karl Ferdinand Ebert ] * New upstream release fixes "tmux does not support screen-256color like it claims". Thanks very much Tim Allen for pointing this out. (Closes: #550701). -- Karl Ferdinand Ebert Fri, 06 Nov 2009 17:03:29 +0100 tmux (1.0-1) unstable; urgency=low * New upstream release + fixes "add a setenv command like in Screen" (Closes: #531151) + and "Omit tmux-generated line-wrapping newlines from paste buffer" (Closes: #531497) * Fix lintian info with 07_fix_hyphen.diff. -- Karl Ferdinand Ebert Thu, 24 Sep 2009 09:52:15 +0200 tmux (0.9-2) unstable; urgency=low * Fixing FTBFS for kfreebsd and hurd with 05_build_kfreebsd_hurd.dpatch * with DEB_BUILD_HARDENING=1 detected minor unchecked return values, fixed with 06_hardening_write_return.dpatch * added README.source from azureus package to satisfy lintian -- Karl Ferdinand Ebert Wed, 26 Aug 2009 18:43:47 +0200 tmux (0.9-1) unstable; urgency=low * New upstream release (Closes: #536087) * better handling of UTF8, therefore dropping hint in README.Debian * Dropping patch 01_fix_wring_location (applied upstream) * Modified patches 02_fix_wring_location and 03_proper_socket_handling to fit in. -- Karl Ferdinand Ebert Tue, 07 Jul 2009 17:05:31 +0200 tmux (0.8-5) unstable; urgency=low * Fix "Bad sockethandling" sockets are now created in /var/run/tmux with sgid flag and utmp group. Modified program drops these privileges immediately. (Closes: #529082) * contains now a README.Debian as a hint for UTF-8 * using dpatch system and a clean debian/rules * mentioned scripts from screen in debian/copyright which cover now an init-script that cleans /var/run/tmux after reboot -- Karl Ferdinand Ebert Sun, 17 May 2009 21:24:02 +0200 tmux (0.8-4) unstable; urgency=low * included statement towards BSD-2,BSD-3 in debian/copyright * filed a bugreport (Closes: #519339: ITP: tmux -- an alternative to screen, licensed under BSD) -- Karl Ferdinand Ebert Sun, 26 Apr 2009 08:12:03 +0200 tmux (0.8-3) unstable; urgency=low * corrected debian/copyright file -- Karl Ferdinand Ebert Sat, 25 Apr 2009 19:40:55 +0200 tmux (0.8-2) unstable; urgency=low * changed debian/rules -- Karl Ferdinand Ebert Sat, 25 Apr 2009 17:04:33 +0200 tmux (0.8-1) unstable; urgency=low * New upstream release -- Karl Ferdinand Ebert Fri, 24 Apr 2009 16:33:16 +0200 tmux (0.7-3) unstable; urgency=low * extended documentation and long description * mentioned BSD license in debian/copyright * manpage is now free of hyphen -- Karl Ferdinand Ebert Thu, 12 Mar 2009 09:17:30 +0100 tmux (0.7-2) unstable; urgency=low * corrected changelog's first entry with useful bug number. -- Karl Ferdinand Ebert Thu, 12 Mar 2009 00:01:18 +0100 tmux (0.7-1) unstable; urgency=low * New upstream release -- Karl Ferdinand Ebert Wed, 11 Mar 2009 19:40:26 +0100 tmux (0.5-1) unstable; urgency=low * New upstream release -- Karl Ferdinand Ebert Tue, 16 Dec 2008 10:16:40 +0100 tmux (0.4a-3) unstable; urgency=low * Fixed Upstream-Maintainer in debian/copyright -- Karl Ferdinand Ebert Wed, 24 Sep 2008 10:53:16 +0200 tmux (0.4a-2) unstable; urgency=low * debian/copyright in appropriate format -- Karl Ferdinand Ebert Tue, 16 Sep 2008 08:28:17 +0200 tmux (0.4a-1) unstable; urgency=low * New upstream release -- Karl Ferdinand Ebert Mon, 15 Sep 2008 18:46:54 +0200 tmux (0.4-1) unstable; urgency=low * New upstream release -- Karl Ferdinand Ebert Fri, 29 Aug 2008 12:01:45 +0200 tmux (0.2-1) unstable; urgency=low * Initial release. -- Karl Ferdinand Ebert Mon, 02 Jun 2008 21:17:30 +0200 debian/dirs0000644000000000000000000000001012124410572010037 0ustar usr/bin debian/NEWS0000644000000000000000000000212612131333241007657 0ustar tmux (1.7~svn2819-1) experimental; urgency=low The server protocol version was changed from 6 to 7, we recommend that you close any open tmux sessions before proceeding with the upgrade. -- Romain Francoise Wed, 30 May 2012 19:52:56 +0200 tmux (1.4-7) unstable; urgency=low Starting with version 1.4-7, tmux is no longer installed setgid utmp and server sockets are no longer placed under /var/run/tmux, reverting to the default upstream behavior (sockets in a user directory under /tmp). We recommend that you close any open tmux sessions before proceeding with the upgrade. If necessary, old servers can be accessed after the upgrade with e.g. "tmux -S /var/run/tmux/tmux-`id -u`/default attach". -- Romain Francoise Sat, 16 Apr 2011 19:16:23 +0200 tmux (1.3-1) unstable; urgency=low Due to an update in the server protocol from version 5 to version 6 users need to terminate open tmux sessions before proceeding with updating tmux 1.2 or older. -- Karl Ferdinand Ebert Fri, 23 Jul 2010 08:09:03 +0200 debian/source/0000755000000000000000000000000012124410572010464 5ustar debian/source/format0000644000000000000000000000001412124410572011672 0ustar 3.0 (quilt) debian/source/lintian-overrides0000644000000000000000000000006212124410572014043 0ustar package-needs-versioned-debhelper-build-depends 9 debian/maintscript0000644000000000000000000000005312124410572011442 0ustar rm_conffile /etc/init.d/tmux-cleanup 1.4-6 debian/control0000644000000000000000000000255012176763617010613 0ustar Source: tmux Section: admin Priority: optional Maintainer: Romain Francoise Uploaders: Karl Ferdinand Ebert Build-Depends: dpkg-dev (>= 1.16.1~), debhelper (>= 8.9.4~), libncurses5-dev, libevent-dev (>> 2.0.10), pkg-config, dh-autoreconf, Standards-Version: 3.9.4 Homepage: http://tmux.sourceforge.net/ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/tmux.git Vcs-Git: git://anonscm.debian.org/collab-maint/tmux.git Package: tmux Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: terminal multiplexer tmux enables a number of terminals (or windows) to be accessed and controlled from a single terminal like screen. tmux runs as a server-client system. A server is created automatically when necessary and holds a number of sessions, each of which may have a number of windows linked to it. Any number of clients may connect to a session, or the server may be controlled by issuing commands with tmux. Communication takes place through a socket, by default placed in /tmp. Moreover tmux provides a consistent and well-documented command interface, with the same syntax whether used interactively, as a key binding, or from the shell. It offers a choice of vim or Emacs key layouts. debian/copyright0000644000000000000000000001363612124410572011130 0ustar Upstream-Name: tmux Upstream-Source: http://sf.net/projects/tmux Upstream Author: Nicholas Marriott Files: * Copyright: Copyright (c) 2007-2010 Nicholas Marriott on everything not listed thereunder Copyright (c) 2009 Joshua Elsasser on attributes.c osdep-darwin.c Copyright (c) 2008-2009 Tiago Cunha on cmd-confirm-before.c cmd-copy-buffer.c cmd-display-message.c cmd-if-shell.c cmd-load-buffer.c cmd-save-buffer.c cmd-source-file.c examples/tmux.vim Copyright (c) 2002 Todd C. Miller on getopt_long.c Copyright (c) 2004, 2005, 2007 Darren Tucker (dtucker at zip com au) on bsd-poll.c Copyright (c) 1998 Todd C. Miller on strlcat.c Copyright (c) 1998 Todd C. Miller on strlcpy.c Copyright (c) 2004 Ted Unangst and Todd Miller on strtonum.c Copyright (c) 2010 Romain Francoise on signal.c License: Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. Files: compat/{bitstring.h,daemon.c,fgetln.c,queue.h,str{casestr,sep}.c, unvis.h,vis.h,vis.c} Copyright: Copyright (c) 1989, 1993 The Regents of the University of California on bitstring.h unvis.c Copyright (c) 1990, 1993 The Regents of the University of California on strcasestr.c strsep.c Copyright (c) 1989, 1993 The Regents of the University of California on vis.c Copyright (c) 1990 The Regents of the University of California on vis.h Copyright (c) 1990, 1993 The Regents of the University of California on daemon.c Copyright (c) 1998 The NetBSD Foundation, Inc. on fgetln.c Copyright (c) 1991, 1993 The Regents of the University of California on queue.h License: BSD-3 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: compat/{bsd-poll.h,imsg.{c,h},imsg-buffer.c,getopt.h,getopt_long.c,tree.h} Copyright: Copyright (c) 1996 Theo de Raadt on bsd-poll.h Copyright (c) 2003, 2004 Henning Brauer on imsg-buffer.c Copyright (c) 2003, 2004 Henning Brauer on imsg.c Copyright (c) 2006, 2007 Pierre-Yves Ritschard and Copyright (c) 2006, 2007, 2008 Reyk Floeter and Copyright (c) 2003, 2004 Henning Brauer on imsg.h Copyright (c) 2000 The NetBSD Foundation, Inc. on getopt.h Copyright (c) 2000 The NetBSD Foundation, Inc. on getopt_long.c Copyright 2002 Niels Provos on tree,h License: BSD-2 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The Debian packaging is Copyright (C) 2008, 2009, 2010, 2011 Karl Ferdinand Ebert and is licensed under BSD-2. File: debian/patches/99_upstream.diff Copyright (c) 2011 Nicholas Marriott debian/postrm0000755000000000000000000000013712124410572010437 0ustar #!/bin/sh set -e if [ "$1" = "remove" ]; then remove-shell /usr/bin/tmux fi #DEBHELPER# debian/rules0000755000000000000000000000023212131333241010234 0ustar #!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS=hardening=+all export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed %: dh $@ --parallel --with autoreconf debian/compat0000644000000000000000000000000212124410572010362 0ustar 9 debian/patches/0000755000000000000000000000000012226475115010622 5ustar debian/patches/upstream-9fcda95a6f.diff0000644000000000000000000000117312226475071015056 0ustar commit 9fcda95a6f55f017536cdf24366754a2304c1059 Author: Nicholas Marriott Date: Wed Apr 10 12:20:35 2013 +0000 Set EV_WRITE for jobs or run/if-shell jobs can hang. From Chris Johnsen. diff --git a/job.c b/job.c index b76b334..291e000 100644 --- a/job.c +++ b/job.c @@ -109,7 +109,7 @@ job_run(const char *cmd, struct session *s, job->event = bufferevent_new(job->fd, NULL, job_write_callback, job_callback, job); - bufferevent_enable(job->event, EV_READ); + bufferevent_enable(job->event, EV_READ|EV_WRITE); log_debug("run job %p: %s, pid %ld", job, job->cmd, (long) job->pid); return (job); debian/patches/upstream-965edf8a5c.diff0000644000000000000000000000144412226475071015001 0ustar commit 965edf8a5c985d760b1e037be8182b353e9139c9 Author: Nicholas Marriott Date: Thu Aug 1 23:37:45 2013 +0100 Make recalculate_sizes() handle an empty window with no active pane. This can happen when a window is in two sessions - it isn't destroyed immediately when the pane goes away but is left until the last session is destroyed. Fixes problems with grouped sessions reported by Daniel Ralston. diff --git a/resize.c b/resize.c index 5c365df..8d0bd27 100644 --- a/resize.c +++ b/resize.c @@ -92,7 +92,7 @@ recalculate_sizes(void) for (i = 0; i < ARRAY_LENGTH(&windows); i++) { w = ARRAY_ITEM(&windows, i); - if (w == NULL) + if (w == NULL || w->active == NULL) continue; flag = options_get_number(&w->options, "aggressive-resize"); debian/patches/upstream-b0b5cad496.diff0000644000000000000000000000200612226475071014754 0ustar commit b0b5cad4968b09b805b475b41c0a9005f79c9563 Author: Nicholas Marriott Date: Thu Aug 1 23:38:35 2013 +0100 Grouped sessions were being leaked on destroy, correctly free them. diff --git a/server-fn.c b/server-fn.c index 86e2054..738a61d 100644 --- a/server-fn.c +++ b/server-fn.c @@ -398,14 +398,15 @@ void server_destroy_session_group(struct session *s) { struct session_group *sg; + struct session *s1; if ((sg = session_group_find(s)) == NULL) server_destroy_session(s); else { - TAILQ_FOREACH(s, &sg->sessions, gentry) + TAILQ_FOREACH_SAFE(s, &sg->sessions, gentry, s1) { server_destroy_session(s); - TAILQ_REMOVE(&session_groups, sg, entry); - free(sg); + session_destroy(s); + } } } diff --git a/session.c b/session.c index 74eb06a..24e2e5e 100644 --- a/session.c +++ b/session.c @@ -150,6 +150,7 @@ void session_destroy(struct session *s) { struct winlink *wl; + log_debug("session %s destroyed", s->name); RB_REMOVE(sessions, &sessions, s); debian/patches/upstream-88a4da9747.diff0000644000000000000000000000121312226475071014634 0ustar commit 88a4da97478ec6b4b2f361315a5a183333d0aa3f Author: Nicholas Marriott Date: Wed May 15 15:39:51 2013 +0000 Don't let cursor position overflow when reflowing, from Christopher Collins. diff --git a/screen.c b/screen.c index 754effc..76aa91c 100644 --- a/screen.c +++ b/screen.c @@ -365,7 +365,13 @@ void screen_reflow(struct screen *s, u_int new_x) { struct grid *old = s->grid; + u_int change; s->grid = grid_create(old->sx, old->sy, old->hlimit); - s->cy -= grid_reflow(s->grid, old, new_x); + + change = grid_reflow(s->grid, old, new_x); + if (change < s->cy) + s->cy -= change; + else + s->cy = 0; } debian/patches/upstream-c103f2fbcb.diff0000644000000000000000000000203612226475071015027 0ustar commit c103f2fbcbeb82019b694bed6869942bc1cbe966 Author: Thomas Date: Tue Aug 20 10:37:55 2013 +0100 Clear window->flags when clearing winlinks When clearing WINLINK_ALERTFLAGS for all sessions, we must also, for that window, clear the window->flags as well, otherwise sessions may well still see flags for winlinks long since cleared. This therfore introduces WINDOW_ALERTFLAGS to help with this. diff --git a/tmux.h b/tmux.h index 6ab9861..0a17f72 100644 --- a/tmux.h +++ b/tmux.h @@ -1005,6 +1005,7 @@ struct window { #define WINDOW_REDRAW 0x4 #define WINDOW_SILENCE 0x8 #define WINDOW_ZOOMED 0x10 +#define WINDOW_ALERTFLAGS (WINDOW_BELL|WINDOW_ACTIVITY|WINDOW_SILENCE) struct options options; diff --git a/window.c b/window.c index 7678adc..7912bd3 100644 --- a/window.c +++ b/window.c @@ -1243,6 +1243,7 @@ winlink_clear_flags(struct winlink *wl) continue; wm->flags &= ~WINLINK_ALERTFLAGS; + wm->window->flags &= ~WINDOW_ALERTFLAGS; server_status_session(s); } } debian/patches/upstream-9fb9f78e43.diff0000644000000000000000000000130012226475071014717 0ustar commit 9fb9f78e43337833825ae464a1c39ed6d78a2fdb Author: Nicholas Marriott Date: Fri May 31 12:50:05 2013 +0000 Use u_char for the send-keys string to avoid mangling top-bit-set characters when they are promoted to int and passed to window_pane_key. Reported by Jacob Bang. diff --git a/cmd-send-keys.c b/cmd-send-keys.c index 3ee3dbe..dcd5f28 100644 --- a/cmd-send-keys.c +++ b/cmd-send-keys.c @@ -56,7 +56,7 @@ cmd_send_keys_exec(struct cmd *self, struct cmd_q *cmdq) struct window_pane *wp; struct session *s; struct input_ctx *ictx; - const char *str; + const u_char *str; int i, key; if (cmd_find_pane(cmdq, args_get(args, 't'), &s, &wp) == NULL) debian/patches/upstream-5dda1abc32.diff0000644000000000000000000000160712226475071015030 0ustar commit 5dda1abc32b7b1eb59901a5592569e21d88c6ad2 Author: Nicholas Marriott Date: Sun Apr 21 21:32:00 2013 +0000 Don't let server_client_check_focus use a dead bufferevent, from Romain Francoise. diff --git a/server-client.c b/server-client.c index 6cacefa..3b7b988 100644 --- a/server-client.c +++ b/server-client.c @@ -514,8 +514,10 @@ server_client_loop(void) w->flags &= ~WINDOW_REDRAW; TAILQ_FOREACH(wp, &w->panes, entry) { - server_client_check_focus(wp); - server_client_check_resize(wp); + if (wp->fd != -1) { + server_client_check_focus(wp); + server_client_check_resize(wp); + } wp->flags &= ~PANE_REDRAW; } } @@ -527,7 +529,7 @@ server_client_check_resize(struct window_pane *wp) { struct winsize ws; - if (wp->fd == -1 || !(wp->flags & PANE_RESIZE)) + if (!(wp->flags & PANE_RESIZE)) return; memset(&ws, 0, sizeof ws); debian/patches/lintian-manpage-hyphen.diff0000644000000000000000000001122112131333241015772 0ustar Description: Fix lintian warning about hyphen used as minus sign Author: Karl Ferdinand Ebert Forwarded: not-needed --- a/tmux.1 +++ b/tmux.1 @@ -466,7 +466,7 @@ .Ql - may be followed by an offset, for example: .Bd -literal -offset indent -select-window -t:+2 +select-window \-t:+2 .Ed .Pp When dealing with a session that doesn't contain sequential window indexes, @@ -522,13 +522,13 @@ .Nm commands include: .Bd -literal -offset indent -refresh-client -t/dev/ttyp2 +refresh-client \-t/dev/ttyp2 -rename-session -tfirst newname +rename-session \-tfirst newname -set-window-option -t:0 monitor-activity on +set-window-option \-t:0 monitor-activity on -new-window ; split-window -d +new-window ; split-window \-d bind-key R source-file ~/.tmux.conf \e; \e display-message "source-file done" @@ -537,11 +537,11 @@ Or from .Xr sh 1 : .Bd -literal -offset indent -$ tmux kill-window -t :1 +$ tmux kill-window \-t :1 -$ tmux new-window \e; split-window -d +$ tmux new-window \e; split-window \-d -$ tmux new-session -d 'vi /etc/passwd' \e; split-window -d \e; attach +$ tmux new-session \-d 'vi /etc/passwd' \e; split-window \-d \e; attach .Ed .Sh CLIENTS AND SESSIONS The @@ -954,7 +954,7 @@ .Pa /tmp as well as the paste buffer: .Bd -literal -offset indent -bind-key -temacs-copy C-q copy-pipe "cat >/tmp/out" +bind-key \-temacs-copy C-q copy-pipe "cat >/tmp/out" .Ed .Pp The paste buffer key pastes the first line from the top paste buffer on the @@ -1134,7 +1134,7 @@ and the result executed as a command. If .Ar template -is not given, "detach-client -t '%%'" is used. +is not given, "detach-client \-t '%%'" is used. For the meaning of the .Fl F flag, see the @@ -1182,7 +1182,7 @@ and the result executed as a command. If .Ar template -is not given, "switch-client -t '%%'" is used. +is not given, "switch-client \-t '%%'" is used. For the meaning of the .Fl F flag, see the @@ -1229,7 +1229,7 @@ Note that .Ql %% can be used and will be replaced with the session name. -The default option if not specified is "switch-client -t '%%'". +The default option if not specified is "switch-client \-t '%%'". If .Fl c is given, will override the default window command. @@ -1272,7 +1272,7 @@ and the result executed as a command. If .Ar template -is not given, "select-window -t '%%'" is used. +is not given, "select-window \-t '%%'" is used. For the meaning of the .Fl F flag, see the @@ -1583,7 +1583,7 @@ option only opens a new pipe if no previous pipe exists, allowing a pipe to be toggled with a single key, for example: .Bd -literal -offset indent -bind-key C-p pipe-pane -o 'cat >>~/output.#I-#P' +bind-key C-p pipe-pane \-o 'cat >>~/output.#I-#P' .Ed .It Xo Ic previous-layout .Op Fl t Ar target-window @@ -2030,8 +2030,8 @@ and be set to any string. For example .Bd -literal -offset indent -$ tmux setw -q @foo "abc123" -$ tmux showw -v @foo +$ tmux setw \-q @foo "abc123" +$ tmux showw \-v @foo abc123 .Ed .Pp @@ -2502,7 +2502,7 @@ Examples are: .Bd -literal -offset indent #(sysctl vm.loadavg) -#[fg=yellow,bold]#(apm -l)%%#[default] [#S] +#[fg=yellow,bold]#(apm \-l)%%#[default] [#S] .Ed .Pp Where appropriate, special character sequences may be prefixed with a number to @@ -2725,7 +2725,7 @@ or with a terminal escape sequence. It may be switched off globally with: .Bd -literal -offset indent -set-window-option -g automatic-rename off +set-window-option \-g automatic-rename off .Ed .Pp .It Ic c0-change-interval Ar interval @@ -3429,7 +3429,7 @@ and the result executed as a command. If .Ar template -is not given, "paste-buffer -b '%%'" is used. +is not given, "paste-buffer \-b '%%'" is used. For the meaning of the .Fl F flag, see the @@ -3780,29 +3780,29 @@ .Pp Changing the default prefix key: .Bd -literal -offset indent -set-option -g prefix C-a +set-option \-g prefix C-a unbind-key C-b bind-key C-a send-prefix .Ed .Pp Turning the status line off, or changing its colour: .Bd -literal -offset indent -set-option -g status off -set-option -g status-bg blue +set-option \-g status off +set-option \-g status-bg blue .Ed .Pp Setting other options, such as the default command, or locking after 30 minutes of inactivity: .Bd -literal -offset indent -set-option -g default-command "exec /bin/ksh" -set-option -g lock-after-time 1800 +set-option \-g default-command "exec /bin/ksh" +set-option \-g lock-after-time 1800 .Ed .Pp Creating new key bindings: .Bd -literal -offset indent bind-key b set-option status bind-key / command-prompt "split-window 'exec man %%'" -bind-key S command-prompt "new-window -n %1 'ssh %1'" +bind-key S command-prompt "new-window \-n %1 'ssh %1'" .Ed .Sh SEE ALSO .Xr pty 4 debian/patches/upstream-939f796f08.diff0000644000000000000000000000133112217104433014556 0ustar commit 939f796f086cac17ad0558b36fa87c55a9cb1a22 Author: Nicholas Marriott Date: Thu Aug 1 23:40:44 2013 +0100 Don't leak formats if they are added multiple times. --- a/format.c +++ b/format.c @@ -117,6 +117,7 @@ format_add(struct format_tree *ft, const char *key, const char *fmt, ...) { struct format_entry *fe; + struct format_entry *fe_now; va_list ap; fe = xmalloc(sizeof *fe); @@ -126,7 +127,13 @@ xvasprintf(&fe->value, fmt, ap); va_end(ap); - RB_INSERT(format_tree, ft, fe); + fe_now = RB_INSERT(format_tree, ft, fe); + if (fe_now != NULL) { + free(fe_now->value); + fe_now->value = fe->value; + free(fe->key); + free(fe); + } } /* Find a format entry. */ debian/patches/upstream-772d61f3ed.diff0000644000000000000000000000125212226475071014707 0ustar commit 772d61f3ed762a50ea4436b7fb70e7024674e6c6 Author: Nicholas Marriott Date: Wed May 15 15:32:14 2013 +0000 RIS should reset focus reporting, from Hayaki Saito. diff --git a/screen-write.c b/screen-write.c index c0935c9..7fcfc5e 100644 --- a/screen-write.c +++ b/screen-write.c @@ -56,7 +56,7 @@ screen_write_reset(struct screen_write_ctx *ctx) screen_reset_tabs(s); screen_write_scrollregion(ctx, 0, screen_size_y(s) - 1); - s->mode &= ~(MODE_INSERT|MODE_KCURSOR|MODE_KKEYPAD); + s->mode &= ~(MODE_INSERT|MODE_KCURSOR|MODE_KKEYPAD|MODE_FOCUSON); s->mode &= ~(ALL_MOUSE_MODES|MODE_MOUSE_UTF8|MODE_MOUSE_SGR); screen_write_clearscreen(ctx); debian/patches/upstream-46c7dbef0f.diff0000644000000000000000000000103112226475071015040 0ustar commit 46c7dbef0f7803dad39db355ee866ecab8db696c Author: Nicholas Marriott Date: Mon Apr 22 13:35:18 2013 +0000 Call recalculate_sizes() after killing window in case it is in a grouped session, from Daniel Ralston. diff --git a/server-fn.c b/server-fn.c index c0b005e..d92754e 100644 --- a/server-fn.c +++ b/server-fn.c @@ -283,6 +283,7 @@ server_kill_window(struct window *w) if (options_get_number(&s->options, "renumber-windows")) session_renumber_windows(s); } + recalculate_sizes(); } int debian/patches/platform-quirks.diff0000644000000000000000000000303412131333241014600 0ustar Description: Build and configuration changes for Debian platforms * Define MAXPATHLEN, PATH_MAX, MAXHOSTNAMELEN, MAX_IOV for Hurd. * Disable libevent's epoll backend on Linux as calling epoll() on /dev/null hangs. * Disable cwd detection on FreeBSD since it requires the FreeBSD version of libutil. Author: Karl Ferdinand Ebert Author: Romain Francoise Bug-Debian: http://bugs.debian.org/609333 Bug-Debian: http://bugs.debian.org/631984 Forwarded: not-needed --- a/tmux.h +++ b/tmux.h @@ -470,6 +470,22 @@ char argv[COMMAND_LENGTH]; }; +#ifndef MAXPATHLEN +#define MAXPATHLEN 4096 +#endif + +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + +#ifndef MAXHOSTNAMELEN +#define MAXHOSTNAMELEN 64 +#endif + +#ifndef IOV_MAX +#define IOV_MAX 1024 +#endif + struct msg_identify_data { char cwd[MAXPATHLEN]; --- a/osdep-freebsd.c +++ b/osdep-freebsd.c @@ -29,7 +29,9 @@ #include #include #include +#if 0 #include +#endif struct kinfo_proc *cmp_procs(struct kinfo_proc *, struct kinfo_proc *); char *osdep_get_name(int, char *); @@ -135,6 +137,7 @@ char * osdep_get_cwd(int fd) { +#if 0 static char wd[PATH_MAX]; struct kinfo_file *info = NULL; pid_t pgrp; @@ -155,6 +158,7 @@ } free(info); +#endif return (NULL); } --- a/osdep-linux.c +++ b/osdep-linux.c @@ -92,6 +92,6 @@ * poll or select, causing hangs. * */ - /* setenv("EVENT_NOEPOLL", "1", 1); */ + setenv("EVENT_NOEPOLL", "1", 1); return (event_init()); } debian/patches/upstream-25c430b1cd.diff0000644000000000000000000000114612226475071014667 0ustar commit 25c430b1cd25d64c52d1c14834957abfaaeb69b6 Author: Nicholas Marriott Date: Wed May 15 15:34:09 2013 +0000 Reserve space for \0 in cmd_print, from George Nachman. diff --git a/cmd.c b/cmd.c index d034870..e7290f2 100644 --- a/cmd.c +++ b/cmd.c @@ -295,8 +295,8 @@ cmd_print(struct cmd *cmd, char *buf, size_t len) size_t off, used; off = xsnprintf(buf, len, "%s ", cmd->entry->name); - if (off < len) { - used = args_print(cmd->args, buf + off, len - off); + if (off + 1 < len) { + used = args_print(cmd->args, buf + off, len - off - 1); if (used == 0) off--; else debian/patches/upstream-21bca549d3.diff0000644000000000000000000000145712226222557014702 0ustar commit 21bca549d35b3d0b4ff1f22f66e5e108c103ac4b Author: Thomas Date: Tue Sep 10 13:17:39 2013 +0100 layout-resize-pane-mouse: Consider visible panes only When a pane is maximized, and text is selected, we end up checking if a pane switch is needed. This therefore means we might end up selecting panes which aren't visible. diff --git a/layout.c b/layout.c index b74bd78..cf554c3 100644 --- a/layout.c +++ b/layout.c @@ -533,6 +533,9 @@ layout_resize_pane_mouse(struct client *c) pane_border = 0; if (m->event & MOUSE_EVENT_DRAG && m->flags & MOUSE_RESIZE_PANE) { TAILQ_FOREACH(wp, &w->panes, entry) { + if (!window_pane_visible(wp)) + continue; + if (wp->xoff + wp->sx == m->lx && wp->yoff <= 1 + m->ly && wp->yoff + wp->sy >= m->ly) { debian/patches/series0000644000000000000000000000065012226475115012040 0ustar platform-quirks.diff lintian-manpage-hyphen.diff upstream-9fcda95a6f.diff upstream-caa8290510.diff upstream-5dda1abc32.diff upstream-46c7dbef0f.diff upstream-772d61f3ed.diff upstream-25c430b1cd.diff upstream-88a4da9747.diff upstream-939f796f08.diff upstream-27364345bf.diff upstream-b0b5cad496.diff upstream-965edf8a5c.diff upstream-9fb9f78e43.diff upstream-5532766b19.diff upstream-c103f2fbcb.diff upstream-21bca549d3.diff debian/patches/upstream-5532766b19.diff0000644000000000000000000000204412226475071014470 0ustar commit 5532766b1935a8888fb60fb9a238f0849b96050b Author: Thomas Adam Date: Tue Aug 13 21:56:41 2013 +0100 Renumber windows: Lookup lastw via window not index When calling 'movew -r' on a session to reorder the winlinks, ensure when adding back in the information for the lastw stack that we look up the winlink based on the window and not its index. Using the index doesn't make sense here because when comparing it to the old set, it will never match since the winlink has been renumbered. Bug reported by Ben Boeckel. diff --git a/session.c b/session.c index 24e2e5e..bb742d8 100644 --- a/session.c +++ b/session.c @@ -615,7 +615,7 @@ session_renumber_windows(struct session *s) memcpy(&old_lastw, &s->lastw, sizeof old_lastw); TAILQ_INIT(&s->lastw); TAILQ_FOREACH(wl, &old_lastw, sentry) { - wl_new = winlink_find_by_index(&s->windows, wl->idx); + wl_new = winlink_find_by_window(&s->windows, wl->window); if (wl_new != NULL) TAILQ_INSERT_TAIL(&s->lastw, wl_new, sentry); } debian/patches/upstream-caa8290510.diff0000644000000000000000000000122312226475071014606 0ustar commit caa8290510244990b26106e027aa253237ada629 Author: Nicholas Marriott Date: Fri Apr 12 12:44:31 2013 +0000 Copy the client into the new cmdq in source-file so commands that work on it (such as new-session) can work. Fixes issue reported by oss-adv at users dot sf dot net. diff --git a/cmd-source-file.c b/cmd-source-file.c index 1bd2bb0..f50efbe 100644 --- a/cmd-source-file.c +++ b/cmd-source-file.c @@ -49,6 +49,7 @@ cmd_source_file_exec(struct cmd *self, struct cmd_q *cmdq) char *cause; cmdq1 = cmdq_new(NULL); + cmdq1->client = cmdq->client; cmdq1->emptyfn = cmd_source_file_done; cmdq1->data = cmdq; debian/patches/upstream-27364345bf.diff0000644000000000000000000000147012226475071014546 0ustar commit 27364345bf68785af58131c47ef46ff081622537 Author: Nicholas Marriott Date: Thu Aug 1 23:39:09 2013 +0100 Don't add client formats when they are NULL. diff --git a/format.c b/format.c index 8c4c784..16ac53d 100644 --- a/format.c +++ b/format.c @@ -317,8 +317,10 @@ format_add(ft, "client_cwd", "%s", c->cwd); format_add(ft, "client_height", "%u", c->tty.sy); format_add(ft, "client_width", "%u", c->tty.sx); - format_add(ft, "client_tty", "%s", c->tty.path); - format_add(ft, "client_termname", "%s", c->tty.termname); + if (c->tty.path != NULL) + format_add(ft, "client_tty", "%s", c->tty.path); + if (c->tty.termname != NULL) + format_add(ft, "client_termname", "%s", c->tty.termname); t = c->creation_time.tv_sec; format_add(ft, "client_created", "%ld", (long) t); debian/postinst0000755000000000000000000000024712124410572011000 0ustar #!/bin/sh set -e if [ "$1" = "configure" ]; then if [ -z "$2" ] || dpkg --compare-versions "$2" lt "1.5-3"; then add-shell /usr/bin/tmux fi fi #DEBHELPER# debian/preinst0000755000000000000000000000035712124410572010603 0ustar #!/bin/sh set -e # Versions before 1.5-2 did not properly disable the tmux-cleanup init script. if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" 'lt' "1.5-2"; then update-rc.d -f tmux-cleanup remove >/dev/null fi #DEBHELPER# debian/watch0000644000000000000000000000007712124410572010221 0ustar version=3 http://sf.net/tmux/tmux-(.+)\.tar\.gz debian uupdate