]> git.wh0rd.org Git - nano.git/commitdiff
Add DB's real fix, and add do_disabled_msg to proto.h (whose code is this?)
authorChris Allegretta <chrisa@asty.org>
Fri, 17 Jan 2003 05:04:17 +0000 (05:04 +0000)
committerChris Allegretta <chrisa@asty.org>
Fri, 17 Jan 2003 05:04:17 +0000 (05:04 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1372 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
proto.h
winio.c

index 822441b150b55e3983f233156f677da75f3190b8..0d067b3fc676584acb7916adcc102767714d3072 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -229,8 +229,8 @@ Changes
          Also fix minor problem with search history where the current
          search item could be at the bottom of the history twice in a
          row under certain conditions. (DLR)
-       - Move down NANO_SMALL in tab check so nano won't complain if
-         just NANO_SMALL is defined (David Benbennick, presumed fix).
+       - Remove parens in NANO_CONTROL_I check so nano won't complain if
+         just NANO_SMALL is defined (David Benbennick).
   edit_refresh()
        - Miscellaneous cleanups that fix a bug where the screen
          isn't updated after uncutting chunks of upwardly marked cut
diff --git a/proto.h b/proto.h
index 05043a1f22e4363c9cd16112ef47166c2b298e47..f981d98e93e6b01f2271374bd5c611366130a513 100644 (file)
--- a/proto.h
+++ b/proto.h
@@ -250,6 +250,7 @@ int no_help(void);
 #if defined(DISABLE_JUSTIFY) || defined(DISABLE_SPELLER) || defined(DISABLE_HELP) || defined(NANO_SMALL)
 void nano_disabled_msg(void);
 #endif
+void do_preserve_msg(void);
 #ifndef NANO_SMALL
 RETSIGTYPE cancel_fork(int signal);
 int open_pipe(const char *command);
diff --git a/winio.c b/winio.c
index 6aa687b9b476026e014e95f87212ccd640d5a6bd..2dfb994cffa725ec0b71d5a85ef2b5212d0cafb0 100644 (file)
--- a/winio.c
+++ b/winio.c
@@ -334,21 +334,20 @@ int nanogetstr(int allowtabs, const char *buf, const char *def,
                }
            }
 #ifndef DISABLE_TABCOMP
-           else {
+           else
+#endif
 #endif
 #ifndef DISABLE_TABCOMP
-               if (allowtabs) {
-                   int shift = 0;
+           if (allowtabs) {
+               int shift = 0;
 
-                   answer = input_tab(answer, x, &tabbed, &shift, list);
-                   xend = strlen(answer);
-                   x += shift;
-                   if (x > xend)
-                       x = xend;
-               }
+               answer = input_tab(answer, x, &tabbed, &shift, list);
+               xend = strlen(answer);
+               x += shift;
+               if (x > xend)
+                   x = xend;
            }
 #endif
-#endif /* NANO_SMALL */
            break;
        case KEY_LEFT:
        case NANO_BACK_KEY: