]> git.wh0rd.org Git - nano.git/commitdiff
- nano.c: - Move the termios things in main() up to signal_init(), where they should...
authorChris Allegretta <chrisa@asty.org>
Fri, 29 Mar 2002 15:38:17 +0000 (15:38 +0000)
committerChris Allegretta <chrisa@asty.org>
Fri, 29 Mar 2002 15:38:17 +0000 (15:38 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1157 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

nano.c

diff --git a/nano.c b/nano.c
index 2cd5ea3e91fe6cc3bd5450aaf255de177817d828..caf9a30b09be5b95692e71303e38a4cf1f3384dd 100644 (file)
--- a/nano.c
+++ b/nano.c
@@ -2976,6 +2976,8 @@ int main(int argc, char *argv[])
            filename = mallocstrcpy(filename, argv[optind]);
     }
 
+    signal_init();
+
     /* now ncurses init stuff... */
     initscr();
     savetty();
@@ -2990,7 +2992,6 @@ int main(int argc, char *argv[])
     init_help_msg();
     help_init();
 #endif
-    signal_init();
 
 #ifdef DEBUG
     fprintf(stderr, _("Main: set up windows\n"));