Go to file
nicm 34674bb180 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. Patch by Thomas Adam.
2013-10-10 11:58:24 +00:00
arguments.c Instead of eating 1024 bytes or so for the arguments of each command, 2013-05-31 12:19:34 +00:00
array.h xfree is not particularly helpful, remove it. From Thomas Adam. 2012-07-10 11:53:01 +00:00
attributes.c Use snprintf for constructing attribute string, from Tim Ruehsen. 2012-03-17 21:45:25 +00:00
cfg.c Add some additional debug logging. 2013-03-25 10:06:13 +00:00
client.c Use lockf which is more portable than flock, from Dagobert Michelsen. 2013-04-22 08:42:19 +00:00
clock.c Call setlocale(LC_TIME) at startup. 2013-04-11 21:52:18 +00:00
cmd-attach-session.c Add -A flag to new-session to make it behave like attach-session if the 2013-03-24 09:58:40 +00:00
cmd-bind-key.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-break-pane.c Add resize-pane -Z to temporary zoom the active pane to occupy the full 2013-03-24 09:57:59 +00:00
cmd-capture-pane.c Handle empty pending output (not a failure) and add \n. From George 2013-03-25 11:42:19 +00:00
cmd-choose-buffer.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-choose-client.c tty.path can be NULL, don't dereference it. From George Nachman. 2013-03-25 10:04:44 +00:00
cmd-choose-list.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-choose-tree.c When using choose-tree -u, start with the current window 2013-04-22 22:17:29 +00:00
cmd-clear-history.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-clock-mode.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-command-prompt.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-confirm-before.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-copy-mode.c Make copy-mode -u still scroll up if already in copy mode, handy for 2013-03-28 15:07:42 +00:00
cmd-delete-buffer.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-detach-client.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-display-message.c Handle no client better in display-message. 2013-03-25 11:42:01 +00:00
cmd-display-panes.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-find-window.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-has-session.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-if-shell.c Try to establish client for run-shell and if-shell if no -t. 2013-03-25 16:04:07 +00:00
cmd-join-pane.c Add resize-pane -Z to temporary zoom the active pane to occupy the full 2013-03-24 09:57:59 +00:00
cmd-kill-pane.c Add resize-pane -Z to temporary zoom the active pane to occupy the full 2013-03-24 09:57:59 +00:00
cmd-kill-server.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-kill-session.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-kill-window.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-link-window.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-list-buffers.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-list-clients.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-list-commands.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-list-keys.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-list-panes.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-list-sessions.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-list-windows.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-list.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-load-buffer.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-lock-server.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-move-window.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-new-session.c Add -P and -F to new-session. 2013-03-25 11:44:00 +00:00
cmd-new-window.c Add -P and -F to new-session. 2013-03-25 11:44:00 +00:00
cmd-paste-buffer.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-pipe-pane.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-queue.c Pass flags into cmdq_guard as an argument since sometimes cmdq->cmd can 2013-10-10 11:45:28 +00:00
cmd-refresh-client.c Missing space in refresh-client synopsis. 2013-10-10 11:46:47 +00:00
cmd-rename-session.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-rename-window.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-resize-pane.c Add resize-pane -Z to temporary zoom the active pane to occupy the full 2013-03-24 09:57:59 +00:00
cmd-respawn-pane.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-respawn-window.c Add resize-pane -Z to temporary zoom the active pane to occupy the full 2013-03-24 09:57:59 +00:00
cmd-rotate-window.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-run-shell.c Try to establish client for run-shell and if-shell if no -t. 2013-03-25 16:04:07 +00:00
cmd-save-buffer.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-select-layout.c Add resize-pane -Z to temporary zoom the active pane to occupy the full 2013-03-24 09:57:59 +00:00
cmd-select-pane.c Add resize-pane -Z to temporary zoom the active pane to occupy the full 2013-03-24 09:57:59 +00:00
cmd-select-window.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-send-keys.c Use u_char for the send-keys string to avoid mangling top-bit-set 2013-05-31 12:50:05 +00:00
cmd-send-prefix.c Make command exec functions return an enum rather than -1/0/1 values and 2012-07-11 07:10:15 +00:00
cmd-server-info.c Rename session idx to session id throughout and add $ prefix to targets 2013-03-25 10:11:45 +00:00
cmd-set-buffer.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-set-environment.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-set-option.c Clarify error messages when setting options, from Thomas Adam. 2013-07-05 15:10:38 +00:00
cmd-show-buffer.c Make command exec functions return an enum rather than -1/0/1 values and 2012-07-11 07:10:15 +00:00
cmd-show-environment.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-show-messages.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-show-options.c Add -q flags to shut up errors to capture-pane and show-options, from 2013-03-25 10:04:04 +00:00
cmd-source-file.c Copy the client into the new cmdq in source-file so commands that work 2013-04-12 12:44:31 +00:00
cmd-split-window.c Revert the command-prefix change which breaks sequences of commands. 2013-03-25 15:59:57 +00:00
cmd-start-server.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-string.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-suspend-client.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-swap-pane.c If -s to swap-pane is not given, use the current pane. 2013-03-28 15:08:12 +00:00
cmd-swap-window.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-switch-client.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-unbind-key.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-unlink-window.c Add a command queue to standardize and simplify commands that call other 2013-03-24 09:54:10 +00:00
cmd-wait-for.c Add wait-for -L and -U for lock and unlock, from Thiago Padilha. 2013-03-25 10:09:35 +00:00
cmd.c Reserve space for \0 in cmd_print, from George Nachman. 2013-05-15 15:34:09 +00:00
colour.c Remove tmux's (already minimal) 88 colour support. Such terminals are 2013-03-27 11:17:12 +00:00
control-notify.c Fix compiler warnings, missing #include. From Thomas Adam. 2013-03-26 10:54:48 +00:00
control.c Pass flags into cmdq_guard as an argument since sometimes cmdq->cmd can 2013-10-10 11:45:28 +00:00
environ.c xfree is not particularly helpful, remove it. From Thomas Adam. 2012-07-10 11:53:01 +00:00
format.c Allow nested format expansion. 2013-10-10 11:50:36 +00:00
grid-cell.c Rather than having two grids for each pane, one for ASCII and one for 2013-01-18 02:16:21 +00:00
grid-view.c Preserve trailing spaces with capture-pane -J, from George Nachman. 2013-03-25 10:05:35 +00:00
grid.c Only include actual trailing spaces not unused cells with capturep -J, 2013-10-10 11:49:29 +00:00
input-keys.c Don't limit width and height to 222 in standard mouse mode. 2013-05-07 11:00:16 +00:00
input.c Accept multiple parameters to SM/RM/DECSET/DECRST, based on a diff from 2013-10-10 11:57:14 +00:00
job.c %zu format for size_t. 2013-04-17 08:41:41 +00:00
key-bindings.c Add resize-pane -Z to temporary zoom the active pane to occupy the full 2013-03-24 09:57:59 +00:00
key-string.c In terminals with XT, turn on modifyOtherKeys=1 with the escape sequence 2013-03-22 10:30:04 +00:00
layout-custom.c Fix handling of short (< 4 character) checksums and a bug with parsing 2013-03-25 11:35:30 +00:00
layout-set.c Fix a trivial copy-and-paste error (sx->sy), from Chris Johnsen. 2011-11-09 12:02:07 +00:00
layout.c Add resize-pane -Z to temporary zoom the active pane to occupy the full 2013-03-24 09:57:59 +00:00
log.c Do not use stderr for log file and don't call log_close when not needed. 2012-05-30 15:01:21 +00:00
Makefile Add a wait-for command which blocks a client on a named channel until it 2013-03-25 10:09:05 +00:00
mode-key.c Whitespace nits, from Ben Boeckel. 2013-07-05 14:44:06 +00:00
names.c Add automatic-rename-format option allowing automatic rename to use 2013-10-10 11:56:50 +00:00
notify.c Add notification for input from a pane, from George Nachman. 2012-09-25 07:41:22 +00:00
options-table.c Add automatic-rename-format option allowing automatic rename to use 2013-10-10 11:56:50 +00:00
options.c xfree is not particularly helpful, remove it. From Thomas Adam. 2012-07-10 11:53:01 +00:00
paste.c Support middle-click paste, based on a diff from Ailin Nemui. 2012-11-27 20:22:12 +00:00
procname.c We no longer use struct eproc for kinfo_proc in sysctl.h so there 2012-12-18 21:28:45 +00:00
resize.c Make recalculate_sizes() handle an empty window with no active 2013-10-10 11:46:00 +00:00
screen-redraw.c When only two panes in a window, only draw half the separating line as 2013-03-25 11:41:49 +00:00
screen-write.c RIS should reset focus reporting, from Hayaki Saito. 2013-05-15 15:32:14 +00:00
screen.c Don't let cursor position overflow when reflowing, from Christopher 2013-05-15 15:39:51 +00:00
server-client.c Allow the file descriptor received from the client to be -1. 2013-10-10 11:49:07 +00:00
server-fn.c Grouped sessions were being leaked on destroy, correctly free them. 2013-10-10 11:46:28 +00:00
server-window.c Add various checks to turn off bits that can't work in control mode 2013-03-21 18:47:01 +00:00
server.c Rename global configuration define. 2013-04-24 10:01:32 +00:00
session.c Renumber windows: Lookup lastw via window not index 2013-10-10 11:58:24 +00:00
signal.c Do not call event_del() for signals after fork(), just use sigaction() 2010-08-19 18:29:01 +00:00
status.c Whitespace nits, from Ben Boeckel. 2013-07-05 14:44:06 +00:00
tmux.1 Add length limit operator for formats. 2013-10-10 11:50:20 +00:00
tmux.c Fix previous not to leak fd on failure, whoops. 2013-10-05 10:40:49 +00:00
tmux.h Pass flags into cmdq_guard as an argument since sometimes cmdq->cmd can 2013-10-10 11:45:28 +00:00
tty-acs.c Use UTF-8 line drawing characters on UTF-8 terminals. Fixes some stupid 2010-09-11 16:19:22 +00:00
tty-keys.c Assign mouse x/y coords before checking them. When receiving mouse 2013-10-10 11:57:52 +00:00
tty-term.c The actual terminfo entries we ended up with for cursor changes are Cs, 2013-06-02 07:52:15 +00:00
tty.c Focus events can cause trouble if left on and they can't be turned off 2013-06-23 13:10:46 +00:00
utf8.c Remove some Korean characters from the zero-width list that apparently 2013-04-12 12:50:36 +00:00
window-choose.c When using choose-tree -u, start with the current window 2013-04-22 22:17:29 +00:00
window-clock.c No more lint means no more ARGSUSED. 2013-03-22 10:31:22 +00:00
window-copy.c Make next-word-end work properly with vi(1) keys, reported by patrick 2013-07-12 09:52:36 +00:00
window.c Fix compiler warnings, missing #include. From Thomas Adam. 2013-03-26 10:54:48 +00:00
xmalloc.c xfree is not particularly helpful, remove it. From Thomas Adam. 2012-07-10 11:53:01 +00:00
xterm-keys.c In terminals with XT, turn on modifyOtherKeys=1 with the escape sequence 2013-03-22 10:30:04 +00:00