From e453b7ecacde36925771326a3eb23380dd3007c1 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 21 Jun 2010 15:17:48 +0800 Subject: [PATCH] fixes m_cursor computing. --- src/ExtEditor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ExtEditor.cc b/src/ExtEditor.cc index c319802..a4b2104 100644 --- a/src/ExtEditor.cc +++ b/src/ExtEditor.cc @@ -295,7 +295,7 @@ ExtEditor::removeCharBefore() } m_text.erase(m_cursor - 1, 1); - m_cursor = std::max(0, static_cast(m_cursor - 1)); + m_cursor = std::max(0, static_cast(m_cursor) - 1); return TRUE; } -- 2.7.4