]> git.wh0rd.org Git - nano.git/commitdiff
nano.c:main() - Fix the KEY_IC being undefined when using slang
authorChris Allegretta <chrisa@asty.org>
Tue, 2 Oct 2001 02:56:45 +0000 (02:56 +0000)
committerChris Allegretta <chrisa@asty.org>
Tue, 2 Oct 2001 02:56:45 +0000 (02:56 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@808 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

nano.c

diff --git a/nano.c b/nano.c
index e1925d53d8f7650dc16b65264b787c079f4e66a4..230ae3ee1d15e7f2efc95b81e59e08d07a5c41ba 100644 (file)
--- a/nano.c
+++ b/nano.c
@@ -2972,8 +2972,12 @@ int main(int argc, char *argv[])
        }
 
 
+#ifndef USE_SLANG
        /* Hack, make insert key do something useful, like insert file */
        if (kbinput == KEY_IC) {
+#else
+       if (0) {
+#endif
          do_insertkey:
 
 #ifdef ENABLE_MULTIBUFFER
@@ -2982,7 +2986,7 @@ int main(int argc, char *argv[])
            do_insertfile(0);
 #endif
 
-                       keyhandled = 1;
+           keyhandled = 1;
        }
 
        /* Last gasp, stuff that's not in the main lists */