diff --git a/src/nano.c b/src/nano.c
index 0727c61e7e801d63e11870bd1a859c39929a45f1..5c618768d1abe6552e043f156316555fb8c1c0d6 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -1033,6 +1033,9 @@ void version(void)
 #ifdef DISABLE_TABCOMP
     printf(" --disable-tabcomp");
 #endif
+#ifndef ENABLE_WORDCOMPLETION
+    printf(" --disable-wordcomp");
+#endif
 #ifdef DISABLE_WRAPPING
     printf(" --disable-wrapping");
 #endif