Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-04-22 | Do not need getopt.h. | nicm | |
2017-01-18 | Plain stravis() because it will mangle UTF-8 characters, so add | nicm | |
utf8_stravis() which calls our existing utf8_strvis() and use it instead | |||
2017-01-18 | Run arguments through vis() as well when printing them. | nicm | |
2016-10-11 | Add static in window-*.c and move some internal functions out of tmux.h. | nicm | |
2016-10-10 | Some more static. | nicm | |
2016-01-19 | I no longer use my SourceForge address so replace it. | nicm | |
2015-11-27 | Do not set a limit on the length of commands when printing them. | nicm | |
2015-08-29 | struct args_entry can go into arguments.c. | nicm | |
2014-10-20 | Tidy up some includes. | nicm | |
2014-04-11 | Don't blindly increase offsets by the return value of snprintf, if there | nicm | |
wasn't enough space this will go off the end. Instead clamp to the available space. Fixes crash reported by Julien Rebetez. | |||
2014-01-15 | Couple of fixes from cppcheck via Tiago Cunha. | nicm | |
2014-01-09 | Simplify args_set, from Tiago Cunha. | nicm | |
2013-11-17 | Include unistd.h as it is the standard location for getopt(). | okan | |
OK millert@ | |||
2013-05-31 | Instead of eating 1024 bytes or so for the arguments of each command, | Nicholas Marriott | |
save memory by using an RB tree. From Tiago Cunha. | |||
2012-07-10 | xfree is not particularly helpful, remove it. From Thomas Adam. | Nicholas Marriott | |
2011-07-09 | Pass the right size to calloc (* not **). | Nicholas Marriott | |
2011-01-30 | Free old argument even if setting to NULL. | Nicholas Marriott | |
2011-01-04 | Clean up and simplify tmux command argument parsing. | Nicholas Marriott | |
Originally, tmux commands were parsed in the client process into a struct with the command data which was then serialised and sent to the server to be executed. The parsing was later moved into the server (an argv was sent from the client), but the parse step and intermediate struct was kept. This change removes that struct and the separate parse step. Argument parsing and printing is now common to all commands (in arguments.c) with each command left with just an optional check function (to validate the arguments at parse time), the exec function and a function to set up any key bindings (renamed from the old init function). This is overall more simple and consistent. There should be no changes to any commands behaviour or syntax although as this touches every command please watch for any unexpected changes. |