fixes strlen.
authorPeng Wu <alexepico@gmail.com>
Wed, 23 Jun 2010 07:31:58 +0000 (15:31 +0800)
committerPeng Wu <alexepico@gmail.com>
Wed, 23 Jun 2010 07:31:58 +0000 (15:31 +0800)
src/ExtEditor.cc

index 36e6cea..972d9bc 100644 (file)
@@ -541,7 +541,7 @@ ExtEditor::updateStateFromInput (void)
 
             if ( command->help ){
                 int space_len = std::max ( 0, m_aux_text_len
-                                           - (int) strlen (command->help)
+                                           - (int) g_utf8_strlen (command->help, -1)
                                            - 2 /* length of "[...]" */);
                 m_auxiliary_text.append(space_len, ' ');