Add check for tiny option in #ifdefs for DISABLE_TABCOMP code
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@468 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
7db63a5b65
commit
a4d6d1df37
|
@ -1,4 +1,8 @@
|
||||||
CVS code -
|
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:
|
- configure.in:
|
||||||
- Fix for _use_keypad check breaking slang support (Christian
|
- Fix for _use_keypad check breaking slang support (Christian
|
||||||
Weisgerber).
|
Weisgerber).
|
||||||
|
|
8
files.c
8
files.c
|
@ -265,7 +265,7 @@ int do_insertfile(void)
|
||||||
fprintf(stderr, "filename is %s", answer);
|
fprintf(stderr, "filename is %s", answer);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef DISABLE_TABCOMP
|
#if !defined(DISABLE_TABCOMP) && !defined(NANO_SMALL)
|
||||||
realname = real_dir_from_tilde(answer);
|
realname = real_dir_from_tilde(answer);
|
||||||
#else
|
#else
|
||||||
realname = mallocstrcpy(realname, answer);
|
realname = mallocstrcpy(realname, answer);
|
||||||
|
@ -276,7 +276,7 @@ int do_insertfile(void)
|
||||||
|
|
||||||
char *tmp = do_browse_from(realname);
|
char *tmp = do_browse_from(realname);
|
||||||
|
|
||||||
#ifdef DISABLE_TABCOMP
|
#if defined(DISABLE_TABCOMP)
|
||||||
realname = NULL;
|
realname = NULL;
|
||||||
#endif
|
#endif
|
||||||
if (tmp != NULL)
|
if (tmp != NULL)
|
||||||
|
@ -342,7 +342,7 @@ int write_file(char *name, int tmp)
|
||||||
if (buf != NULL)
|
if (buf != NULL)
|
||||||
free(buf);
|
free(buf);
|
||||||
|
|
||||||
#ifndef DISABLE_TABCOMP
|
#if !defined(DISABLE_TABCOMP) && !defined(NANO_SMALL)
|
||||||
realname = real_dir_from_tilde(name);
|
realname = real_dir_from_tilde(name);
|
||||||
#else
|
#else
|
||||||
realname = mallocstrcpy(realname, name);
|
realname = mallocstrcpy(realname, name);
|
||||||
|
@ -575,7 +575,7 @@ int do_writeout_void(void)
|
||||||
return do_writeout(filename, 0);
|
return do_writeout(filename, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef DISABLE_TABCOMP
|
#if !defined(DISABLE_TABCOMP) && !defined(NANO_SMALL)
|
||||||
static char **homedirs;
|
static char **homedirs;
|
||||||
|
|
||||||
/* Return a malloc()ed string containing the actual directory, used
|
/* Return a malloc()ed string containing the actual directory, used
|
||||||
|
|
2
utils.c
2
utils.c
|
@ -159,7 +159,7 @@ void new_magicline(void)
|
||||||
totsize++;
|
totsize++;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef DISABLE_TABCOMP
|
#if !defined(DISABLE_TABCOMP) && !defined(NANO_SMALL)
|
||||||
/*
|
/*
|
||||||
* Routine to see if a text string is matched by a wildcard pattern.
|
* 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
|
* Returns TRUE if the text is matched, or FALSE if it is not matched
|
||||||
|
|
4
winio.c
4
winio.c
|
@ -250,7 +250,7 @@ int nanogetstr(int allowtabs, char *buf, char *def, shortcut s[], int slen,
|
||||||
int kbinput = 0, j = 0, x = 0, xend;
|
int kbinput = 0, j = 0, x = 0, xend;
|
||||||
int x_left = 0, inputlen, tabbed = 0;
|
int x_left = 0, inputlen, tabbed = 0;
|
||||||
char *inputbuf;
|
char *inputbuf;
|
||||||
#ifndef DISABLE_TABCOMP
|
#if !defined(DISABLE_TABCOMP) && !defined(NANO_SMALL)
|
||||||
int shift = 0;
|
int shift = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -346,7 +346,7 @@ int nanogetstr(int allowtabs, char *buf, char *def, shortcut s[], int slen,
|
||||||
x--;
|
x--;
|
||||||
nanoget_repaint(buf, inputbuf, x);
|
nanoget_repaint(buf, inputbuf, x);
|
||||||
break;
|
break;
|
||||||
#ifndef DISABLE_TABCOMP
|
#if !defined(DISABLE_TABCOMP) && !defined(NANO_SMALL)
|
||||||
case NANO_CONTROL_I:
|
case NANO_CONTROL_I:
|
||||||
if (allowtabs) {
|
if (allowtabs) {
|
||||||
shift = 0;
|
shift = 0;
|
||||||
|
|
Loading…
Reference in New Issue