Nicholas Marriott
c519f9a84c
evbuffer_readline returns allocated storage, don't leak it.
2013-03-22 15:55:22 +00:00
Nicholas Marriott
8d59b189cc
No more lint means no more ARGSUSED.
2013-03-22 10:31:22 +00:00
Nicholas Marriott
dd46c95e23
Aargh. Spaces -> tabs.
2013-03-21 16:25:08 +00:00
Nicholas Marriott
6ddb06d372
Extend jobs to support writing and use that for copy-pipe instead of popen,
...
from Chris Johnsen.
2013-03-21 14:24:33 +00:00
Nicholas Marriott
cb6f36655e
evbuffer_readline returns allocated storage, don't leak it.
2013-02-20 23:15:21 +00:00
Nicholas Marriott
c3859d1df1
Add copy-pipe mode command to copy selection and also pipe to a command.
2013-02-19 17:49:53 +00:00
Nicholas Marriott
9d165df18a
No more lint means no more ARGSUSED.
2013-02-17 23:15:38 +00:00
Nicholas Marriott
755d4863c8
Spaces -> tabs.
2013-02-14 12:22:14 +00:00
Nicholas Marriott
28544391f5
Do not leak formats in status_replace.
2013-02-14 12:20:17 +00:00
Nicholas Marriott
06ac4b628d
Add a format client_prefix which is 1 if prefix key has been pressed, used for
...
example #{?client_prefix,X,Y}. Also a few extra server_client_status needed.
2013-02-10 18:58:05 +00:00
Nicholas Marriott
6c53a1ed68
Allow formats in status options.
2013-02-10 18:53:25 +00:00
Thomas Adam
39631edb98
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-11-27 18:12:04 +00:00
Nicholas Marriott
93224260ae
Add window-status-last-* options, from Boris Faure.
2012-11-27 13:52:23 +00:00
Tiago Cunha
a432fcd306
Sync OpenBSD patchset 1150:
...
xfree is not particularly helpful, remove it. From Thomas Adam.
2012-07-11 19:34:16 +00:00
Tiago Cunha
06d27e94b2
Sync OpenBSD patchset 1149:
...
Move a NULL check inside a function, from Tiago Cunha.
2012-07-11 19:30:01 +00:00
Nicholas Marriott
df912e3540
xfree is not particularly helpful, remove it. From Thomas Adam.
2012-07-10 11:53:01 +00:00
Nicholas Marriott
a3391692ad
Move a NULL check inside a function, from Tiago Cunha.
2012-07-09 09:55:57 +00:00
Tiago Cunha
e45dc6ae59
Sync OpenBSD patchset 1103:
...
Use int not u_char for colours from options since they may have bit 8
set to mark them as 256-colour. Reported by Chris Johnson.
2012-05-03 17:12:38 +00:00
Nicholas Marriott
e60f48ab09
Use int not u_char for colours from options since they may have bit 8
...
set to mark them as 256-colour. Reported by Chris Johnson.
2012-04-29 07:33:41 +00:00
Tiago Cunha
6df8953f4f
Sync OpenBSD patchset 1097:
...
Add window-status-separator option, from Thomas Adam.
2012-04-24 16:20:18 +00:00
Nicholas Marriott
e02d1bce98
Add window-status-separator option, from Thomas Adam.
2012-04-23 22:23:14 +00:00
Tiago Cunha
0987d55231
Sync OpenBSD patchset 1057:
...
Check event_initialized before event_del if event may not have been set
up; libevent2 complains about this. Reported by Moriyoshi Koizumi.
2012-03-18 01:59:34 +00:00
Nicholas Marriott
d3c842d367
Check event_initialized before event_del if event may not have been set
...
up; libevent2 complains about this. Reported by Moriyoshi Koizumi.
2012-03-17 18:24:07 +00:00
Tiago Cunha
32a6092f71
Sync OpenBSD patchset 1039:
...
Add A and I keys for vi status line editing.
2012-03-07 13:37:44 +00:00
Tiago Cunha
9d79a56402
Sync OpenBSD patchset 1036:
...
The wlmouse offset should be part of the client, not the server. From
Ailin Nemui.
2012-03-07 13:35:03 +00:00
Nicholas Marriott
30f4c30ca3
Add A and I keys for vi status line editing.
2012-03-04 07:38:11 +00:00
Nicholas Marriott
4b8bb7770f
The wlmouse offset should be part of the client, not the server. From
...
Ailin Nemui.
2012-03-03 08:55:56 +00:00
Tiago Cunha
e4a7cefe0c
Sync OpenBSD patchset 1015:
...
Add an option to move the status line to the top of the screen,
requested by many.
2012-01-29 12:57:01 +00:00
Tiago Cunha
9c1d3046ca
Sync OpenBSD patchset 1013:
...
Terminate strftime buffer properly even if a really long format string
is given, from Tiago Cunha.
2012-01-29 12:52:16 +00:00
Tiago Cunha
c846298747
Sync OpenBSD patchset 1012:
...
Fix memory leak in error path, from Tiago Cunha.
2012-01-29 12:51:43 +00:00
Nicholas Marriott
230d0fbc9e
Add an option to move the status line to the top of the screen,
...
requested by many.
2012-01-29 09:37:02 +00:00
Nicholas Marriott
a7a44bfcd9
Terminate strftime buffer properly even if a really long format string
...
is given, from Tiago Cunha.
2012-01-26 09:05:54 +00:00
Nicholas Marriott
d2d2df1365
Fix memory leak in error path, from Tiago Cunha.
2012-01-26 09:03:09 +00:00
Tiago Cunha
b7551c9193
Sync OpenBSD patchset 1001:
...
Add some trivial additional status line attributes from jwcxz at users
dot sourceforge dot net.
2012-01-20 21:20:35 +00:00
Tiago Cunha
b79189958f
Sync OpenBSD patchset 998:
...
Add space movement keys for vi mode in the status line from Ben Boeckel.
2012-01-20 21:17:18 +00:00
Nicholas Marriott
8cf19ab770
Add some trivial additional status line attributes from jwcxz at users
...
dot sourceforge dot net.
2012-01-20 19:51:28 +00:00
Nicholas Marriott
e6519d3e27
Add space movement keys for vi mode in the status line from Ben Boeckel.
2012-01-20 19:10:29 +00:00
Tiago Cunha
620a87db25
Sync OpenBSD patchset 983:
...
Make M-f and M-b work the same at the command prompt as in copy mode,
pointed out by Romain Francoise.
2011-12-06 18:47:14 +00:00
Nicholas Marriott
2397083f7e
Make M-f and M-b work the same at the command prompt as in copy mode,
...
pointed out by Romain Francoise.
2011-12-01 20:42:31 +00:00
Tiago Cunha
774bffb3c6
Sync OpenBSD patchset 982:
...
Add word movement and editing command for command prompt editing, from
Ben Boeckel.
2011-11-25 13:34:20 +00:00
Tiago Cunha
9ec457575d
Sync OpenBSD patchset 979:
...
Make window_pane_index work the same as window_index, from Ben Boeckel.
2011-11-25 13:30:45 +00:00
Nicholas Marriott
fc5f8804ec
Add word movement and editing command for command prompt editing, from
...
Ben Boeckel.
2011-11-15 23:34:12 +00:00
Nicholas Marriott
57df442916
Make window_pane_index work the same as window_index, from Ben Boeckel.
2011-11-15 23:19:51 +00:00
Tiago Cunha
21128fea1e
Sync OpenBSD patchset 976:
...
Option to change status line (message) background when using vi keys and
in command mode. From Ben Boeckel.
2011-11-10 21:40:17 +00:00
Nicholas Marriott
e5bf63cb59
Option to change status line (message) background when using vi keys and
...
in command mode. From Ben Boeckel.
2011-11-05 09:06:31 +00:00
Tiago Cunha
2651c0d69c
Sync OpenBSD patchset 947:
...
Fix a couple of memory leaks, from marcel partap.
2011-08-21 12:39:34 +00:00
Nicholas Marriott
3657aa675e
Fix a couple of memory leaks, from marcel partap.
2011-08-20 20:37:30 +00:00
Tiago Cunha
bba822105b
Sync OpenBSD patchset 934:
...
Make confirm-before prompt customizable with -p option like
command-prompt. Also move responsibility for calling status_replace into
status_prompt_{set,update} and add #W and #P to the default kill-window
and kill-pane prompts. By Tiago Cunha.
2011-07-08 08:42:03 +00:00
Nicholas Marriott
2de9b1e005
Make confirm-before prompt customizable with -p option like
...
command-prompt. Also move responsibility for calling status_replace into
status_prompt_{set,update} and add #W and #P to the default kill-window
and kill-pane prompts. By Tiago Cunha.
2011-07-08 06:37:57 +00:00
Tiago Cunha
e097f0b4ee
Sync OpenBSD patchset 927:
...
Allow the initial context on prompts to be set with the new -I option to
command-prompt. From Tiago Cunha.
2011-07-03 21:52:50 +00:00
Nicholas Marriott
ad60a2c952
Allow the initial context on prompts to be set with the new -I option to
...
command-prompt. From Tiago Cunha.
2011-07-02 21:05:44 +00:00
Tiago Cunha
4846af8f95
Sync OpenBSD patchset 899:
...
Only redraw the status line on command update, not the entire client
(big DOH).
2011-05-05 10:02:36 +00:00
Nicholas Marriott
075816eb72
Only redraw the status line on command update, not the entire client
...
(big DOH).
2011-04-29 07:07:31 +00:00
Tiago Cunha
341f67e827
Sync OpenBSD patchset 898:
...
Provide #h for short hostname (no domain) from Michal Mazurek.
2011-04-25 20:35:22 +00:00
Nicholas Marriott
eb288aae32
Provide #h for short hostname (no domain) from Michal Mazurek.
2011-04-24 21:32:07 +00:00
Nicholas Marriott
dc6bd98425
|PatchSet 893
...
|Date: 2011/04/18 20:49:05
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|Add an option (mouse-select-window) which allows the mouse to be used by
|clicking on the status line, written by hsim at gmx dot li.
2011-04-18 21:07:58 +00:00
Nicholas Marriott
0bb2119781
Add an option (mouse-select-window) which allows the mouse to be used by
...
clicking on the status line, written by hsim at gmx dot li.
2011-04-18 19:49:05 +00:00
Nicholas Marriott
ffce6b34b2
|PatchSet 876
...
|Date: 2011/03/29 20:30:16
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|Change -t on display-message to be target-pane for the #[A-Z]
|replacements and add -c as target-client.
2011-04-06 22:21:02 +00:00
Nicholas Marriott
d88c20e718
Change -t on display-message to be target-pane for the #[A-Z]
...
replacements and add -c as target-client.
2011-03-29 19:30:16 +00:00
Tiago Cunha
3d7b8105e1
Sync OpenBSD patchset 855:
...
Simplify the way jobs work and drop the persist type, so all jobs are
fire-and-forget.
Status jobs now managed with two trees of output (new and old), rather
than storing the output in the jobs themselves. When the status line is
processed any jobs which don't appear in the new tree are started and
the output from the old tree displayed. When a job finishes it updates
the new tree with its output and that is used for any subsequent
redraws. When the status interval expires, the new tree is moved to the
old so that all jobs are run again.
This fixes the "#(echo %H:%M:%S)" problem which would lead to thousands
of identical persistent jobs and high memory use (this can still be
achieved by adding "sleep 30" but that is much less likely to happen by
accident).
2011-02-15 15:20:03 +00:00
Nicholas Marriott
db7a89b1ee
Simplify the way jobs work and drop the persist type, so all jobs are
...
fire-and-forget.
Status jobs now managed with two trees of output (new and old), rather
than storing the output in the jobs themselves. When the status line is
processed any jobs which don't appear in the new tree are started and
the output from the old tree displayed. When a job finishes it updates
the new tree with its output and that is used for any subsequent
redraws. When the status interval expires, the new tree is moved to the
old so that all jobs are run again.
This fixes the "#(echo %H:%M:%S)" problem which would lead to thousands
of identical persistent jobs and high memory use (this can still be
achieved by adding "sleep 30" but that is much less likely to happen by
accident).
2011-01-26 01:54:56 +00:00
Tiago Cunha
30f6d9b167
Sync OpenBSD patchset 813:
...
Add a function to create window flags rather than doing the same thing
in two places. From Thomas Adam.
2011-01-07 16:55:40 +00:00
Tiago Cunha
3aaf5b9b1e
Sync OpenBSD patchset 827:
...
Handle a # at the end of a replacement string (such as status-left)
correctly. Found by Thomas Adam.
2011-01-07 14:32:26 +00:00
Tiago Cunha
36c7c7537a
Sync OpenBSD patchset 826:
...
Move the user-visible parts of all options (names, types, limit, default
values) together into one set of tables in options-table.c. Also clean
up and simplify cmd-set-options.c and move a common print function into
option-table.c.
2011-01-03 23:52:38 +00:00
Nicholas Marriott
5158dd9a8d
Handle a # at the end of a replacement string (such as status-left)
...
correctly. Found by Thomas Adam.
2011-01-03 21:30:49 +00:00
Nicholas Marriott
3e8124009f
Move the user-visible parts of all options (names, types, limit, default
...
values) together into one set of tables in options-table.c. Also clean
up and simplify cmd-set-options.c and move a common print function into
option-table.c.
2011-01-01 16:51:21 +00:00
Nicholas Marriott
cc42614fa9
Change from a per-session stack of buffers to one global stack which is
...
much more convenient and also simplifies lot of code. This renders
copy-buffer useless and makes buffer-limit now a server option.
By Tiago Cunha.
2010-12-30 23:16:18 +00:00
Tiago Cunha
9ebee6aef8
Global paste buffers instead of per-session which renders copy-buffer useless.
...
As a consequence buffer-limit is now a server option.
2010-12-30 22:39:49 +00:00
Nicholas Marriott
2231e72968
Add a function to create window flags rather than doing the same thing
...
in two places. From Thomas Adam.
2010-12-30 21:35:17 +00:00
Nicholas Marriott
095ffe9cd1
Make the prompt history global for all clients which is much more useful
...
than per-client history.
2010-12-11 16:15:02 +00:00
Nicholas Marriott
9802fea615
Oops, these functions return a const char *, so make the local variable
...
const as well.
2010-12-11 16:13:15 +00:00
Nicholas Marriott
7ce77ffc9c
Make the prompt history global for all clients which is much more useful than per-client history.
2010-12-11 16:05:57 +00:00
Nicholas Marriott
3a4f765a51
Add an option to alert (monitor) for silence (lack of activity) in a
...
window. From Thomas Adam.
2010-12-06 22:52:21 +00:00
Nicholas Marriott
e26a351865
Add an option to alert (monitor) for silence (lack of activity) in a
...
window. From Thomas Adam.
2010-12-06 22:51:02 +00:00
Tiago Cunha
47b335dee7
Sync OpenBSD patchset 724:
...
Having a list of winlinks->alerts for each session is stupid, just store
the alert flags directly in the winlink itself.
2010-06-22 23:26:18 +00:00
Nicholas Marriott
e63f0546a1
Having a list of winlinks->alerts for each session is stupid, just store
...
the alert flags directly in the winlink itself.
2010-06-21 01:27:46 +00:00
Tiago Cunha
11cd05db27
Sync OpenBSD patchset 701:
...
Colour+attribute options for status line alerts, from Alex Alexander.
2010-06-05 23:56:29 +00:00
Nicholas Marriott
d91127958d
Colour+attribute options for status line alerts, from Alex Alexander.
2010-05-14 19:03:09 +00:00
Nicholas Marriott
67300e9524
Stupid style nits.
2010-04-06 21:45:36 +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
4012917302
Nuke unused functions.
2010-03-27 15:12:56 +00:00
Nicholas Marriott
41f90bd08f
Don't leak job command in #().
2010-03-27 15:06:40 +00:00
Nicholas Marriott
c550e66e85
Dead functions, lint.
2010-03-22 19:18:46 +00:00
Nicholas Marriott
de64913786
Plug memory leak, from Gregory Thiemonge.
2010-03-10 13:41:13 +00:00
Tiago Cunha
95dfa950b8
Sync OpenBSD patchset 622:
...
Calculate offset correctly, fixes incorrect offset and prevents crash when
status-left is empty. From Micah Cowan.
2010-01-28 22:46:44 +00:00
Tiago Cunha
0e320881d5
Sync OpenBSD patchset 620:
...
Actually use the copy made when no newline is found, from martynas@.
2010-01-28 22:44:16 +00:00
Nicholas Marriott
05213e4c8c
Calculate offset correctly, fixes incorrect offset and prevents crash when
...
status-left is empty. From Micah Cowan.
2010-01-27 20:26:42 +00:00
Nicholas Marriott
ba6dedbbbd
Actually use the copy made when no newline is found, from martynas@.
2010-01-26 21:36:53 +00:00
Tiago Cunha
6f578a434b
Sync OpenBSD patchset 588:
...
Add server options to completion as well.
2009-12-16 01:10:36 +00:00
Nicholas Marriott
84d2e6c8a0
Add server options to completion as well.
2009-12-14 10:47:11 +00:00
Tiago Cunha
cc094fdfe6
Sync OpenBSD patchset 581:
...
Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last
time now I've configured emacs to make them displayed in really annoying
colours...
2009-12-04 22:14:47 +00:00
Tiago Cunha
1caa73afb4
Sync OpenBSD patchset 580:
...
Eliminate duplicate code and ease the passage for server-wide options by adding
a -w flag to set-option and show-options and making setw and showw aliases to
set -w and show -w.
Note: setw and showw are still there, but now aliases for set -w and show -w.
2009-12-04 22:11:23 +00:00
Nicholas Marriott
15a64b805e
Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last
...
time now I've configured emacs to make them displayed in really annoying
colours...
2009-12-03 22:50:09 +00:00
Nicholas Marriott
6c9862662f
Eliminate duplicate code and ease the passage for server-wide options by adding
...
a -w flag to set-option and show-options and making setw and showw aliases to
set -w and show -w.
Note: setw and showw are still there, but now aliases for set -w and show -w.
2009-12-03 17:44:02 +00:00
Tiago Cunha
fabf40b3b3
Sync OpenBSD patchset 569:
...
Tidy up various bits of the paste code, make the data buffer char * and add
comments.
2009-11-28 14:54:12 +00:00
Tiago Cunha
c12e0b0708
Sync OpenBSD patchset 567:
...
Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to
the rest to reduce lint output.
2009-11-28 14:50:37 +00:00
Nicholas Marriott
8cb410c63c
Tidy up various bits of the paste code, make the data buffer char * and add
...
comments.
2009-11-26 22:28:24 +00:00
Nicholas Marriott
4ca857e0e9
Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to
...
the rest to reduce lint output.
2009-11-26 21:37:13 +00:00
Tiago Cunha
bce5aedc64
Sync OpenBSD patchset 557:
...
Display UTF-8 properly in status line messages and prompt. Cursor handling is
still way off though.
2009-11-22 00:11:33 +00:00