/* This is for making the file buffer refresh as few as possible. */
EFI_STATUS FileBufferBackup(VOID)
/* This is for making the file buffer refresh as few as possible. */
EFI_STATUS FileBufferBackup(VOID)
{
  FileBufferBackupVar.MousePosition = FileBuffer.MousePosition;
  SHELL_FREE_NON_NULL (FileBufferBackupVar.FileName);
  FileBufferBackupVar.FileName = NULL;
  FileBufferBackupVar.FileName = StrnCatGrow (&FileBufferBackupVar.FileName, NULL, FileBuffer.FileName, 0);
  FileBufferBackupVar.ModeInsert = FileBuffer.ModeInsert;
  FileBufferBackupVar.FileType   = FileBuffer.FileType;
  FileBufferBackupVar.FilePosition    = FileBuffer.FilePosition;
  FileBufferBackupVar.LowVisibleRange = FileBuffer.LowVisibleRange;
  FileBufferBackupVar.FileModified = FileBuffer.FileModified;
  FileBufferBackupVar.ReadOnly     = FileBuffer.ReadOnly;
  return EFI_SUCCESS;
}