summaryrefslogtreecommitdiff
path: root/nanobox.c
diff options
context:
space:
mode:
Diffstat (limited to 'nanobox.c')
-rw-r--r--nanobox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nanobox.c b/nanobox.c
index 1ff34d4..50fcfa8 100644
--- a/nanobox.c
+++ b/nanobox.c
@@ -760,12 +760,12 @@ int main(int argc, char **argv)
devtty = fopen("/dev/tty", "a+");
nano_stdin_fd = fileno(devtty);
#endif
+ write1("\033[?1049h");
#if ENABLE_FEATURE_NANO_STDIO
if (nano_stdio_mode) {
edit_file(NULL);
} else {
#endif
- write1("\033[?1049h");
while (1) {
edit_file(argv[optind]); /* param might be NULL */
if (++optind >= argc)