8264e92b37
Fix return value of load_cfg, from Thomas Adam.
2012-11-27 22:59:34 +00:00
9b8998aeec
Correctly aggregate together errors from nested config files (with
...
source-file). Fix by Thomas Adam, reported by Sam Livingstone-Gray
2012-11-27 16:12:29 +00:00
827b311c81
Use a utility function for common code to show errors in config file,
...
from Thomas Adam.
2012-11-19 10:38:06 +00:00
ede8312d59
Make command exec functions return an enum rather than -1/0/1 values and
...
add a new value to mean "leave client running but don't attach" to fix
problems with using some commands in a command sequence. Most of the
work by Thomas Adam, problem reported by "jspenguin" on SF bug 3535531.
2012-07-11 07:10:15 +00:00
df912e3540
xfree is not particularly helpful, remove it. From Thomas Adam.
2012-07-10 11:53:01 +00:00
ac7e2f13e9
Ignore line continuation when escaped as \\, from Simon Nicolussi.
2012-05-17 21:21:31 +00:00
0588168a64
Support \ for line continuation in the configuration file, from Julius
...
Plenz.
2011-08-24 10:46:01 +00:00
230e39ec35
Allow the config file parser and source-file to return "don't exit" to
...
the client to let attach work from configuration files.
2010-12-29 21:28:32 +00:00
608eef731a
Fix an out-of-date comment.
2010-05-25 19:47:30 +00:00
4651180503
Use the array.h code for the causes list.
2010-02-06 23:22:27 +00:00
8aba77b7be
Instead of bailing out on the first configuration file error, carry on,
...
collecting all the errors, then start with the active window in more mode
displaying them.
2010-02-06 17:15:33 +00:00
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
ed62d1263c
tabs are better; ok nicm
2009-10-26 21:42:04 +00:00
c7394ac4e0
When using source-file, run the commands in the context of the source-file
...
command rather than with no context. This makes things like attach work from a
file.
2009-08-23 17:29:51 +00:00
43cd40e87a
The cursession member in struct cmd_ctx is always either curclient->session or
...
NULL when curclient is also NULL, so just eliminate it.
2009-08-23 16:45:00 +00:00
b3107d26df
Don't leak in the (rare) case of an invalid command at the end of a file not
...
terminated by a \n.
2009-08-09 08:34:17 +00:00
61f3fc7e4d
Don't babysit people and let them try to load /dev/zero or (more useful)
...
/dev/null if they want.
2009-07-30 17:46:12 +00:00
9144d30848
Unused prototypes. Found by lint, no binary change.
2009-06-25 06:00:45 +00:00
35876eaab9
Import tmux, a terminal multiplexor allowing (among other things) a single
...
terminal to be switched between several different windows and programs
displayed on one terminal be detached from one terminal and moved to another.
ok deraadt pirofti
2009-06-01 22:58:49 +00:00