projects
/
platform
/
upstream
/
ibus-libpinyin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
804df27
)
fixes m_cursor computing.
author
Peng Wu
<alexepico@gmail.com>
Mon, 21 Jun 2010 07:17:48 +0000
(15:17 +0800)
committer
Peng Wu
<alexepico@gmail.com>
Mon, 21 Jun 2010 07:17:48 +0000
(15:17 +0800)
src/ExtEditor.cc
patch
|
blob
|
history
diff --git
a/src/ExtEditor.cc
b/src/ExtEditor.cc
index
c319802
..
a4b2104
100644
(file)
--- 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<int>(m_cursor
- 1)
);
+ m_cursor = std::max(0, static_cast<int>(m_cursor
) - 1
);
return TRUE;
}