tweaks: exclude a bit more code from a single-buffer build
parent
7668bfe6f2
commit
ea844d28fe
|
@ -64,26 +64,25 @@ void make_new_buffer(void)
|
||||||
{
|
{
|
||||||
openfilestruct *newnode = nmalloc(sizeof(openfilestruct));
|
openfilestruct *newnode = nmalloc(sizeof(openfilestruct));
|
||||||
|
|
||||||
|
#ifdef ENABLE_MULTIBUFFER
|
||||||
if (openfile == NULL) {
|
if (openfile == NULL) {
|
||||||
/* Make the first open file the only element in the list. */
|
/* Make the first open file the only element in the list. */
|
||||||
#ifdef ENABLE_MULTIBUFFER
|
|
||||||
newnode->prev = newnode;
|
newnode->prev = newnode;
|
||||||
newnode->next = newnode;
|
newnode->next = newnode;
|
||||||
#endif
|
|
||||||
firstfile = newnode;
|
firstfile = newnode;
|
||||||
} else {
|
} else {
|
||||||
/* Add the new open file after the current one in the list. */
|
/* Add the new open file after the current one in the list. */
|
||||||
#ifdef ENABLE_MULTIBUFFER
|
|
||||||
newnode->prev = openfile;
|
newnode->prev = openfile;
|
||||||
newnode->next = openfile->next;
|
newnode->next = openfile->next;
|
||||||
openfile->next->prev = newnode;
|
openfile->next->prev = newnode;
|
||||||
openfile->next = newnode;
|
openfile->next = newnode;
|
||||||
#endif
|
|
||||||
/* There is more than one file open: show "Close" in help lines. */
|
/* There is more than one file open: show "Close" in help lines. */
|
||||||
exitfunc->desc = close_tag;
|
exitfunc->desc = close_tag;
|
||||||
more_than_one = !inhelp || more_than_one;
|
more_than_one = !inhelp || more_than_one;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
/* Make the new buffer the current one, and start initializing it. */
|
/* Make the new buffer the current one, and start initializing it. */
|
||||||
openfile = newnode;
|
openfile = newnode;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue