summaryrefslogtreecommitdiff
path: root/src/textbuf.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-03-17 13:04:10 +0000
committerfrosch <frosch@openttd.org>2013-03-17 13:04:10 +0000
commit579ee7a59230db6d1caac8e653d27ccc6e454e2e (patch)
tree58aefe8ebad6e9dbeeda73f02f9a1071f22b091d /src/textbuf.cpp
parent9cad36865fb6aeff8aeab6d28bea41f05d2c91e0 (diff)
downloadopenttd-579ee7a59230db6d1caac8e653d27ccc6e454e2e.tar.xz
(svn r25089) -Codechange: Move CharSetFilter from QueryString to Textbuf.
Diffstat (limited to 'src/textbuf.cpp')
-rw-r--r--src/textbuf.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/textbuf.cpp b/src/textbuf.cpp
index 9b9eb2d6a..457388db7 100644
--- a/src/textbuf.cpp
+++ b/src/textbuf.cpp
@@ -364,6 +364,7 @@ Textbuf::Textbuf(uint16 max_bytes, uint16 max_chars)
assert(max_bytes != 0);
assert(max_chars != 0);
+ this->afilter = CS_ALPHANUMERAL;
this->max_bytes = max_bytes;
this->max_chars = max_chars == UINT16_MAX ? max_bytes : max_chars;
this->caret = true;