Add history to awesome-client

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Niv Sardi 2008-06-19 15:28:12 +10:00 committed by Julien Danjou
parent 25a65cc2f3
commit d980db411d
1 changed files with 1 additions and 0 deletions

View File

@ -120,6 +120,7 @@ main(int argc, char **argv)
while((msg = readline(prompt)))
if((msg_len = a_strlen(msg)))
{
add_history (msg);
p_realloc(&msg, msg_len + 2);
msg[msg_len] = '\n';
msg[msg_len + 1] = '\0';