Finish tab-completed constant and variable names with a space v1.1
authorMartin Lambers <marlam@marlam.de>
Tue, 20 Jan 2015 19:40:01 +0000 (20:40 +0100)
committerMartin Lambers <marlam@marlam.de>
Tue, 20 Jan 2015 19:40:01 +0000 (20:40 +0100)
mucalc.cpp

index 91f6d19..99d3896 100644 (file)
@@ -181,7 +181,7 @@ static char* completion_generator(const char* text, int state)
             break;
     }
     if (name) {
-        rl_completion_append_character = '\0';
+        rl_completion_append_character = ' ';
         return strdup(name);
     }
     // ... and finally variable names.
@@ -193,7 +193,7 @@ static char* completion_generator(const char* text, int state)
         name = NULL;
     }
     if (name) {
-        rl_completion_append_character = '\0';
+        rl_completion_append_character = ' ';
         return strdup(name);
     }
     return NULL;