tweaks: change a function to void, to make things more direct

This commit is contained in:
Benno Schulenberg
2019-05-29 20:02:50 +02:00
parent 5f03c20ea0
commit 7e422402d5
3 changed files with 9 additions and 12 deletions

View File

@@ -647,13 +647,10 @@ void switch_to_next_buffer(void)
switch_to_adjacent_buffer(FORWARD);
}
/* Delete an entry from the circular list of open files, and switch to the
* one after it. Return FALSE if just one buffer is open, otherwise TRUE. */
bool close_buffer(void)
/* Delete the current entry from the circular list of open files,
* after switching to the buffer after it. */
void close_buffer(void)
{
if (openfile == openfile->next)
return FALSE;
#ifdef ENABLE_HISTORIES
if (ISSET(POSITIONLOG) && !inhelp)
update_poshistory(openfile->filename,
@@ -670,8 +667,6 @@ bool close_buffer(void)
/* If now just one buffer remains open, show "Exit" in the help lines. */
if (openfile == openfile->next)
exitfunc->desc = exit_tag;
return TRUE;
}
#endif /* ENABLE_MULTIBUFFER */