CVSROOT: /cvs Module name: src Changes by: n...@cvs.openbsd.org 2010/06/26 12:20:54
Modified files: usr.bin/tmux : cmd-bind-key.c cmd-list.c key-bindings.c tmux.c tmux.h Log message: Setting the cmdlist pointer in the bind-key to NULL to prevent it being freed after the command is executing is bogus because it may still be needed if the same command is going to be executed again (for example if you "bind-key a bind-key b ..."). Making a copy is hard, so instead add a reference count to the cmd_list. While here, also print bind-key -n and the rest of the flags properly. Fixes problem reported by mcbr...@.