summaryrefslogtreecommitdiffstats
path: root/src/PYStrokeEditor.cc
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-08-09 11:29:29 +0800
committerPeng Wu <alexepico@gmail.com>2012-08-09 11:29:29 +0800
commit451b86fca949ee74cfec8e3494a096ea6fa7519a (patch)
tree62bc29f5577cba8cee402828d2a4283d59b41040 /src/PYStrokeEditor.cc
parentc0b417a3a10b853cb030e1e8fd1c0c138f2ab801 (diff)
downloadibus-libpinyin-451b86fca949ee74cfec8e3494a096ea6fa7519a.tar.gz
ibus-libpinyin-451b86fca949ee74cfec8e3494a096ea6fa7519a.tar.xz
ibus-libpinyin-451b86fca949ee74cfec8e3494a096ea6fa7519a.zip
fixes processEnter
Diffstat (limited to 'src/PYStrokeEditor.cc')
-rw-r--r--src/PYStrokeEditor.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/PYStrokeEditor.cc b/src/PYStrokeEditor.cc
index 252dddd..20bc84f 100644
--- a/src/PYStrokeEditor.cc
+++ b/src/PYStrokeEditor.cc
@@ -310,8 +310,7 @@ StrokeEditor::processEnter (guint keyval)
if (m_text.length () == 0)
return FALSE;
- String preedit = m_text.substr (1);
- Text text (preedit);
+ Text text(m_text);
commitText (text);
reset ();
return TRUE;