aboutsummaryrefslogtreecommitdiff
path: root/demo-async.c
diff options
context:
space:
mode:
Diffstat (limited to 'demo-async.c')
-rw-r--r--demo-async.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demo-async.c b/demo-async.c
index 9b48434..dd869a8 100644
--- a/demo-async.c
+++ b/demo-async.c
@@ -6,7 +6,7 @@
static void on_key(TermKey *tk, TermKeyKey *key)
{
char buffer[50];
- termkey_snprint_key(tk, buffer, sizeof buffer, key, TERMKEY_FORMAT_VIM);
+ termkey_strfkey(tk, buffer, sizeof buffer, key, TERMKEY_FORMAT_VIM);
printf("%s\n", buffer);
}