commit | 65deba3a350f760dacdb170fbecfa07edf4e4711 | [log] [download] |
---|---|---|
author | Nicholas Marriott <nicm@openbsd.org> | Fri Jul 17 06:13:27 2009 +0000 |
committer | Nicholas Marriott <nicm@openbsd.org> | Fri Jul 17 06:13:27 2009 +0000 |
tree | aa04b471d50b4cc7417c15f5e88fa588c8eafa2b | |
parent | 9642f0373f94d6015e66806c95ba1570c7bb06ea [diff] |
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.