diff options
author | Samuel Bronson <naesten@gmail.com> | 2011-09-22 19:42:04 -0400 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-09-23 11:53:02 +0200 |
commit | a2abffa3ab12931544100128a33e6d771da1862f (patch) | |
tree | 27d23f76e248b6cbc42b1984a62911f9373f5b47 /crawl-ref/source/cio.cc | |
parent | 0a4b700a6b75f9e9fc5ad49d9bac899ea9a041d1 (diff) | |
download | crawl-ref-a2abffa3ab12931544100128a33e6d771da1862f.tar.gz crawl-ref-a2abffa3ab12931544100128a33e6d771da1862f.zip |
Fix line_reader's handling of the DELETE key.
Diffstat (limited to 'crawl-ref/source/cio.cc')
-rw-r--r-- | crawl-ref/source/cio.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/cio.cc b/crawl-ref/source/cio.cc index be249d9928..8606113fe7 100644 --- a/crawl-ref/source/cio.cc +++ b/crawl-ref/source/cio.cc @@ -509,7 +509,7 @@ int line_reader::process_key(int ch) length = np - buffer; cursorto(pos); - buffer[length] = 0; + buffer[length-1] = 0; wrapcprintf(wrapcol, "%s ", cur); cursorto(pos); } |