X-Git-Url: https://pd.if.org/git/?p=pd_readline;a=blobdiff_plain;f=pd_readline.c;h=c92870a1e5e60ce6dde18a642e3cee88aa0dc159;hp=033dfc1b96b2f4f05a493ebc3871a9bee503bee0;hb=2aac28bc15a87f5fde5daa83352f9f9b675fc635;hpb=f4117575c853c20d7312cbb8153d9a77340f8849 diff --git a/pd_readline.c b/pd_readline.c index 033dfc1..c92870a 100644 --- a/pd_readline.c +++ b/pd_readline.c @@ -23,12 +23,16 @@ /* Ctrl-C and Ctrl-V. */ -#include "pd_readline.h" +#include "pd_readline.h" 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); }