CVSROOT: /cvs Module name: src Changes by: n...@cvs.openbsd.org 2009/07/17 00:13:27
Modified files: usr.bin/tmux : cmd-command-prompt.c cmd-confirm-before.c cmd-select-prompt.c server-fn.c status.c tmux.h Log message: Memory could be leaked if a second prompt or message appeared while another was still present, so add a separate prompt free callback and make the _clear function responsible for calling it if necessary (rather than the individual prompt callbacks). Also make both messages and prompts clear any existing when a new is set. In addition, the screen could be modified while the prompt is there, restore the redraw-entire-screen behaviour on prompt clear; add a comment as a reminder.