X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fwreadln.c;h=df5b55e8c97a9d7ae2477a8363de70fdaab9f1f6;hb=54674384020f5d8019ca71f6c283d18ba32d5171;hp=7abfc4ac203a65270f65c0176b812d336ca64d43;hpb=9e8806dadee58efe36151a6bca22d65487ed02ee;p=ncmpc.git diff --git a/src/wreadln.c b/src/wreadln.c index 7abfc4a..df5b55e 100644 --- a/src/wreadln.c +++ b/src/wreadln.c @@ -72,9 +72,11 @@ struct wreadln { /** max items stored in the history list */ static const guint wrln_max_history_length = 32; +#ifndef NCMPC_MINI void *wrln_completion_callback_data = NULL; wrln_gcmp_pre_cb_t wrln_pre_completion_callback = NULL; wrln_gcmp_post_cb_t wrln_post_completion_callback = NULL; +#endif /** converts a byte position to a screen column */ static unsigned @@ -396,6 +398,10 @@ _wreadln(WINDOW *w, gint key = 0; size_t i; +#ifdef NCMPC_MINI + (void)gcmp; +#endif + /* turn off echo */ noecho(); /* make shure the cursor is visible */ @@ -458,6 +464,7 @@ _wreadln(WINDOW *w, break; case TAB: +#ifndef NCMPC_MINI if (gcmp) { char *prefix = NULL; GList *list; @@ -477,6 +484,7 @@ _wreadln(WINDOW *w, wrln_post_completion_callback(gcmp, wr.line, list, wrln_completion_callback_data); } +#endif break; case KEY_CTRL_G: