Nicholas Marriott
842bc2b855
Fix use-after-free of the window link when it is part of a grouped
...
session (and hence could have been recreated), from Micah Cowan.
2010-04-17 23:14:17 +00:00
Tiago Cunha
0646b3caf2
Sync OpenBSD patchset 680:
...
Remove XXX comment and just close received fd if calloc() fails.
If this happens the imsg may no longer be usable as there may be queued
messages, but this is a) already the case with the code now, and b)
would be the case if recvmsg() fails anyway, so we can document that -1
from imsg_read() invalidates the struct imsgbuf.
discussed with and ok eric
2010-04-12 21:45:18 +00:00
Micah Cowan
b2e752b384
Don't try to use a window-link that may have been freed.
...
In the case where a join-pane is performed from within a grouped session,
and the source pane had no siblings in the window (causing the window to
be destroyed), there was an invalid access of the destination window
link (which had been destroyed as part of the group session's
resynchronization with the original session, due to killing the
now-empty source window).
CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: cmd-join-pane.c
CVS: ----------------------------------------------------------------------
2010-04-09 07:09:37 +00:00
Nicholas Marriott
08632b4f0a
there can be only one rpathbuf
2010-04-08 07:54:43 +00:00
Nicholas Marriott
a2c86dcbf6
Remove XXX comment and just close received fd if calloc() fails.
...
If this happens the imsg may no longer be usable as there may be queued
messages, but this is a) already the case with the code now, and b)
would be the case if recvmsg() fails anyway, so we can document that -1
from imsg_read() invalidates the struct imsgbuf.
discussed with and ok eric
2010-04-07 18:09:39 +00:00
Nicholas Marriott
10b73b7a11
Sync nit.
2010-04-06 22:08:10 +00:00
Nicholas Marriott
cd0f22b96e
Unbreak. Whoops.
2010-04-06 22:02:52 +00:00
Nicholas Marriott
610056abbe
Man page sync.
2010-04-06 22:02:03 +00:00
Nicholas Marriott
3743238a86
From Bob Beck:
...
rather than using an empty "" as the default window title, put the hostname
of the machine we are running on in there.
makes my many green lines easier to deal with without using fiddly options to
set it.
2010-04-06 22:01:32 +00:00
Nicholas Marriott
531db321e3
-s src-pane.
2010-04-06 21:59:59 +00:00
Nicholas Marriott
642f549e4d
Dead assignment.
2010-04-06 21:59:37 +00:00
Nicholas Marriott
0fc65537a3
Run job commands explicitly in the global enviroment (which can be
...
modified with setenv -g) rather than with the environment tmux started
with.
2010-04-06 21:59:19 +00:00
Nicholas Marriott
091db41bc9
Squash a function that is only called in a callback into the
...
callback function.
2010-04-06 21:58:33 +00:00
Nicholas Marriott
67300e9524
Stupid style nits.
2010-04-06 21:45:36 +00:00
Nicholas Marriott
ac9daf92d7
Merge copy mode and output mode, dropping the latter. Idea and code from
...
Micah Cowan.
2010-04-06 21:35:44 +00:00
Nicholas Marriott
f2a4ef5260
window-more.c is now defunct.
2010-04-06 10:53:41 +00:00
Nicholas Marriott
7dc1720522
+.
2010-04-05 22:28:56 +00:00
Nicholas Marriott
07dcf8610f
FreeBSD kqueue is broken before 8.
2010-04-05 22:28:25 +00:00
Nicholas Marriott
f81190a793
Mention title setting, and the new default.
2010-04-05 17:46:05 +00:00
Micah Cowan
2d74ce1d3a
Merge output (more) and copy modes into one single mode (called copy).
2010-04-05 05:11:44 +00:00
Bob Beck
6704c86301
rather than using an empty "" as the default window title, put the hostname
...
of the machine we are running on in there.
makes my many green lines easier to deal with without using fiddly options to
set it.
ok nicm@
2010-04-04 23:05:15 +00:00
Jason McIntyre
680f920b55
tweak;
2010-04-04 21:23:20 +00:00
Nicholas Marriott
089c33f5be
Should be -s for src pane.
2010-04-04 19:12:20 +00:00
Nicholas Marriott
46d5c14b17
Dead assignment, found with clang.
2010-04-04 19:04:09 +00:00
Nicholas Marriott
b02cd35354
Run job commands explicitly in the global enviroment (which can be
...
modified with setenv -g) rather than with the environment tmux started
with.
2010-04-04 19:02:09 +00:00
Nicholas Marriott
7425122c1c
Squash a function that is only called in a callback into the callback
...
function.
2010-04-04 18:48:37 +00:00
Nicholas Marriott
5879e2a32b
libevent needs librt on Linux, from Aaron Isotton.
2010-04-02 21:26:40 +00:00
Nicholas Marriott
1392fba63d
Don't accept keys with modifiers as input. Fixes crash reported by Brian
...
R Landy.
2010-03-31 18:24:08 +00:00
Nicholas Marriott
56481a46bf
Don't accept keys with modifiers as input. Fixes crash reported by Brian
...
R Landy.
2010-03-31 18:05:14 +00:00
Nicholas Marriott
1c6ab725f5
+.
2010-03-29 18:54:07 +00:00
Nicholas Marriott
4012917302
Nuke unused functions.
2010-03-27 15:12:56 +00:00
Nicholas Marriott
dd7abd9b4c
-a flag to insert a window after an existing one, moving other windows
...
up as necessary.
2010-03-27 15:12:11 +00:00
Nicholas Marriott
41f90bd08f
Don't leak job command in #().
2010-03-27 15:06:40 +00:00
Nicholas Marriott
51c776fe93
+.
2010-03-27 13:43:13 +00:00
Nicholas Marriott
d3d85c3df9
-a flag to insert a window after an existing one, moving other windows
...
up necessary.
2010-03-27 11:46:58 +00:00
Jason McIntyre
d267845cfc
dispense with some wacky escape sequences;
2010-03-26 19:30:40 +00:00
Nicholas Marriott
c550e66e85
Dead functions, lint.
2010-03-22 19:18:46 +00:00
Nicholas Marriott
e16b7b8399
Reset output functions too when changing client after attaching, to
...
avoid crash if a command in a sequence after new/attach causes output.
2010-03-22 19:14:55 +00:00
Nicholas Marriott
9abbe349af
paste-buffer should be per pane, from C. Coutinho.
2010-03-22 19:13:28 +00:00
Nicholas Marriott
509ce7f766
Nuke unused variable.
2010-03-22 19:11:54 +00:00
Nicholas Marriott
0ac6efa6d5
Add vi-style "jump" commands for copy mode, from Micah Cowan.
2010-03-22 19:10:42 +00:00
Nicholas Marriott
6f04866044
Support up, down, left, right movement through panes with -UDLR flags to
...
select-pane.
Also REMOVE the up- and down-pane commands: equivalent behaviour is now
available using -t :.+ and -t :.-.
2010-03-22 19:07:52 +00:00
Nicholas Marriott
021037c419
Accept a full key match (not a partial) even if there is data left in
...
the buffer.
2010-03-22 19:03:52 +00:00
Nicholas Marriott
4baafd8126
New input parser based on http://vt100.net/emu/dec_ansi_parser .
2010-03-22 19:02:54 +00:00
Nicholas Marriott
9382e546df
+.
2010-03-18 21:10:11 +00:00
Nicholas Marriott
659d15786a
Reset output functions too when changing client after attaching.
2010-03-18 21:06:40 +00:00
Nicholas Marriott
2307b91ecb
paste-buffer should be per pane, from C. Coutinho.
2010-03-18 21:02:41 +00:00
Nicholas Marriott
a2c87eb899
Unused variable.
2010-03-16 23:40:14 +00:00
Nicholas Marriott
33a90efc93
Minor Nazi style tweaks to previous, and man page rephrasery.
2010-03-16 17:51:32 +00:00
Micah Cowan
009d8d2ea7
Jump-forward, jump-backward in copy mode, based on vi's F and f commands.
2010-03-16 17:30:58 +00:00