Changeset - r19599:1a9449b31797
[Not reviewed]
master
0 1 0
zuu - 12 years ago 2012-09-17 15:17:13
zuu@openttd.org
(svn r24530) -Fix [#5203] (r24521): Ctrl+backspace/delete could remove too many characters (sbr)
1 file changed with 0 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/textbuf.cpp
Show inline comments
 
@@ -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.
0 comments (0 inline, 0 general)