* Added posix_fallocate to File::reserve, though it is disabled by

default.

* Added some checks to the keyboard input code in the client, perhaps
it'll fix the bug some OpenBSD people are encountering.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@501 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-07-19 14:00:20 +00:00
parent 81c36a7d96
commit 10ff3141d9
2 changed files with 6 additions and 15 deletions
-15
View File
@@ -36,7 +36,6 @@
#include "config.h"
#include <sstream>
#include <ncurses.h>
#include "text_input.h"
@@ -45,8 +44,6 @@ namespace input {
bool
TextInput::pressed(int key) {
//std::stringstream str;
if (m_alt) {
m_alt = false;
@@ -102,18 +99,6 @@ TextInput::pressed(int key) {
default:
return false;
// Testcode.
// if (key == KEY_ENTER || key == '\n')
// return false;
// str << "\\x" << std::hex << key;
// Base::insert(m_pos, str.str());
// m_pos += str.str().length();
// return true;
}
}