add lua command help hint.
authorPeng Wu <alexepico@gmail.com>
Tue, 22 Jun 2010 07:13:09 +0000 (15:13 +0800)
committerPeng Wu <alexepico@gmail.com>
Tue, 22 Jun 2010 07:13:09 +0000 (15:13 +0800)
src/ExtEditor.cc

index 305c8c1..28f0566 100644 (file)
@@ -531,6 +531,12 @@ ExtEditor::updateStateFromInput (void)
                 return false;
             }
 
+            if ( command->help ){
+                m_auxiliary_text += "\t[";
+                m_auxiliary_text += command->help;
+                m_auxiliary_text += "]";
+            }
+
             std::string label = command->leading;
 
             if ( "digit" == label )