diff options
Diffstat (limited to 'startmode.c')
-rw-r--r-- | startmode.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/startmode.c b/startmode.c index dc71ffa..866da36 100644 --- a/startmode.c +++ b/startmode.c @@ -71,8 +71,14 @@ int startmode(char filename[]) { break; case 'P': case 'p': - print_7ed(filename, focus); + char *line; + int ret = GET_LINE(filename, focus, &line); + if (ret == 1) { + return EXIT_FAILURE; + } + printf("%s", line); + free(line); break; case 'E': case 'e': |