From 72639deb84b7b4ca61a10f87ac2dc4841f4c8cdb Mon Sep 17 00:00:00 2001 From: zuu Date: Mon, 17 Sep 2012 15:17:13 +0000 Subject: (svn r24530) -Fix [#5203] (r24521): Ctrl+backspace/delete could remove too many characters (sbr) --- src/textbuf.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/textbuf.cpp b/src/textbuf.cpp index dc1d7a7cb..9c8753d89 100644 --- a/src/textbuf.cpp +++ b/src/textbuf.cpp @@ -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); -- cgit v1.2.3-70-g09d2