(svn r24530) -Fix [#5203] (r24521): Ctrl+backspace/delete could remove too many characters (sbr)

This commit is contained in:
zuu 2012-09-17 15:17:13 +00:00
parent 6e56b3abf8
commit 72639deb84
1 changed files with 0 additions and 4 deletions

View File

@ -111,10 +111,6 @@ bool Textbuf::DeleteChar(int delmode)
if (delmode == (WKC_CTRL | WKC_BACKSPACE) || delmode == (WKC_CTRL | WKC_DELETE)) {
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);