X-Git-Url: https://pd.if.org/git/?p=pd_readline;a=blobdiff_plain;f=pd_readline.c;h=c92870a1e5e60ce6dde18a642e3cee88aa0dc159;hp=756e5ddd5c6f022c13f466a8ec6c946633f22b81;hb=7a1a81d517d3e95f6f9f5dba853fe6d9d8c27ab3;hpb=3345932d0ab453d9ca85814fde1fe618bb36570f diff --git a/pd_readline.c b/pd_readline.c index 756e5dd..c92870a 100644 --- a/pd_readline.c +++ b/pd_readline.c @@ -29,6 +29,10 @@ int main(void) { + /* Create a buffer for the text. */ + buf mybuf; + + /* Read in the command history file. */ readhistory("test.txt"); @@ -36,7 +40,7 @@ int main(void) while(1) { - keyhandler(); + keyhandler(mybuf); }