Sfoglia il codice sorgente

fix off-by-one error in pkgDPkgPM::SetupTerminalScrollArea()

Michael Vogt 12 anni fa
parent
commit
28e3b6f6f8
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      apt-pkg/deb/dpkgpm.cc

+ 1 - 1
apt-pkg/deb/dpkgpm.cc

@@ -963,7 +963,7 @@ void pkgDPkgPM::SetupTerminalScrollArea(int nr_rows)
 
 
      // scroll down a bit to avoid visual glitch when the screen
      // scroll down a bit to avoid visual glitch when the screen
      // area shrinks by one row
      // area shrinks by one row
-     std::cout << "\n\n";
+     std::cout << "\n";
          
          
      // save cursor
      // save cursor
      std::cout << "\033[s";
      std::cout << "\033[s";