summaryrefslogtreecommitdiff
path: root/src/textbuf.cpp
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2012-09-17 15:17:13 +0000
committerzuu <zuu@openttd.org>2012-09-17 15:17:13 +0000
commit72639deb84b7b4ca61a10f87ac2dc4841f4c8cdb (patch)
tree68e323cc88858c2c0f64f92aff4ac9f9ad7bedc7 /src/textbuf.cpp
parent6e56b3abf8ef431051506d5a945b8f1ea91e3fbb (diff)
downloadopenttd-72639deb84b7b4ca61a10f87ac2dc4841f4c8cdb.tar.xz
(svn r24530) -Fix [#5203] (r24521): Ctrl+backspace/delete could remove too many characters (sbr)
Diffstat (limited to 'src/textbuf.cpp')
-rw-r--r--src/textbuf.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/textbuf.cpp b/src/textbuf.cpp
index dc1d7a7cb..9c8753d89 100644
--- a/src/textbuf.cpp
+++ b/src/textbuf.cpp
@@ -112,10 +112,6 @@ bool Textbuf::DeleteChar(int delmode)
bool backspace = delmode == (WKC_CTRL | WKC_BACKSPACE);
if (!CanDelChar(backspace)) return false;
-
- /* Unconditionally delete one char to the left. */
- this->DelChar(backspace);
- if (!CanDelChar(backspace)) return false;
WChar c = this->GetNextDelChar(backspace);
/* Backspace: Delete left whitespaces.