commit | 03c1c1cd9f731a8a5a066855077e91e31d2baf34 | [log] [download] |
---|---|---|
author | Tiago Cunha <tcunha@gmx.com> | Fri Jul 02 02:43:01 2010 +0000 |
committer | Tiago Cunha <tcunha@gmx.com> | Fri Jul 02 02:43:01 2010 +0000 |
tree | 832957257356595b9739132bd7d72aeea410f7a7 | |
parent | 0e70c8801cc4143b9100c860df1f2e3aac368d0a [diff] |
Sync OpenBSD patchset 727: 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 mcbride@.