CVS code -
+General
+ - Changed #ifdefs to check for both DISABLE_TABCOMP and
+ NANO_SMALL, makes tiny option leave out tab completion, which
+ shoudl be left out in that circumstance. Saves at least 5k.
- configure.in:
- Fix for _use_keypad check breaking slang support (Christian
Weisgerber).
fprintf(stderr, "filename is %s", answer);
#endif
-#ifndef DISABLE_TABCOMP
+#if !defined(DISABLE_TABCOMP) && !defined(NANO_SMALL)
realname = real_dir_from_tilde(answer);
#else
realname = mallocstrcpy(realname, answer);
char *tmp = do_browse_from(realname);
-#ifdef DISABLE_TABCOMP
+#if defined(DISABLE_TABCOMP)
realname = NULL;
#endif
if (tmp != NULL)
if (buf != NULL)
free(buf);
-#ifndef DISABLE_TABCOMP
+#if !defined(DISABLE_TABCOMP) && !defined(NANO_SMALL)
realname = real_dir_from_tilde(name);
#else
realname = mallocstrcpy(realname, name);
return do_writeout(filename, 0);
}
-#ifndef DISABLE_TABCOMP
+#if !defined(DISABLE_TABCOMP) && !defined(NANO_SMALL)
static char **homedirs;
/* Return a malloc()ed string containing the actual directory, used
totsize++;
}
-#ifndef DISABLE_TABCOMP
+#if !defined(DISABLE_TABCOMP) && !defined(NANO_SMALL)
/*
* Routine to see if a text string is matched by a wildcard pattern.
* Returns TRUE if the text is matched, or FALSE if it is not matched
int kbinput = 0, j = 0, x = 0, xend;
int x_left = 0, inputlen, tabbed = 0;
char *inputbuf;
-#ifndef DISABLE_TABCOMP
+#if !defined(DISABLE_TABCOMP) && !defined(NANO_SMALL)
int shift = 0;
#endif
x--;
nanoget_repaint(buf, inputbuf, x);
break;
-#ifndef DISABLE_TABCOMP
+#if !defined(DISABLE_TABCOMP) && !defined(NANO_SMALL)
case NANO_CONTROL_I:
if (allowtabs) {
shift = 0;