diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-05 10:17:39 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-05 10:17:39 +0000 |
commit | e5aada2bf01e51753829215c0a3035aa8bd8135a (patch) | |
tree | 65d7f5145334db1be780f177b93feb054f35cc82 /src/client | |
parent | 68e4bbe3153f45139031a614541b2ccd80dd5526 (diff) |
ncurses updates, refactored say
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/console.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/console.cc b/src/client/console.cc index 6d286a9..b52f8a0 100644 --- a/src/client/console.cc +++ b/src/client/console.cc @@ -165,7 +165,7 @@ void Console::keypressed(unsigned int key) else console_scroll = 0; break; default: - if ((key >= 32 ) && (key <175)) { + if ((key >= 32 ) && (key <175) && ((*history_pos).size() < MAXCMDSIZE)) { if (input_pos == (*history_pos).size()) (*history_pos) += (char)key; else |