Fixed help prompt not displaying properly
authorBryce Lanham <blanham@gmail.com>
Tue, 11 Feb 2014 07:27:30 +0000 (01:27 -0600)
committerBryce Lanham <blanham@gmail.com>
Tue, 11 Feb 2014 07:27:30 +0000 (01:27 -0600)
As with the other prompt, the help prompt needed a call to fflush

src/dumb/dumb_input.c

index 2a3212c40722ba66c78acc65893e846f95017a81..0d657b58cfe8206ad0657520708a64e8627ff3c9 100644 (file)
@@ -270,6 +270,7 @@ static bool dumb_read_line(char *s, char *prompt, bool show_cursor,
          if (!*current_page)
            break;
          printf("HELP: Type <return> for more, or q <return> to stop: ");
+         fflush(stdout);
          dumb_getline(s);
          if (!strcmp(s, "q\n"))
            break;