change fillCommandCandidates behaviour.
authorPeng Wu <alexepico@gmail.com>
Tue, 18 May 2010 07:12:10 +0000 (15:12 +0800)
committerPeng Wu <alexepico@gmail.com>
Wed, 19 May 2010 02:09:33 +0000 (10:09 +0800)
src/ExtEditor.cc

index db95324..c567798 100644 (file)
@@ -224,8 +224,11 @@ ExtEditor::fillCommandCandidates(std::string prefix)
     for ( int i = 0; i < commands->len; ++i){
         lua_command_t * command = &g_array_index(commands, lua_command_t, i);
         if ( strncmp(prefix_str, command->command_name, len) == 0){
-            m_lookup_table.appendLabel(Text(command->command_name));
-            m_lookup_table.appendCandidate(Text(command->description));
+            std::string candidate = command->command_name;
+            candidate += ".";
+            candidate += command->description;
+            m_lookup_table.appendLabel(Text(""));
+            m_lookup_table.appendCandidate(Text(candidate));
         }
     }