]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfunc.C
bug 186
[lyx.git] / src / lyxfunc.C
index adfe50ce56f93e9fc323694f72c12155baa3826c..26c1f9fa9d3399273bfc4e7b6146e363ccb39461 100644 (file)
@@ -756,16 +756,11 @@ void LyXFunc::miniDispatch(string const & s)
 
 void const LyXFunc::verboseDispatch(string const & s, bool show_sc) 
 {
-       // Split command string into command and argument
-       string cmd;
-       string line = frontStrip(s);
-       string const arg = strip(frontStrip(split(line, cmd, ' ')));
-
-       int action = lyxaction.LookupFunc(cmd);
+       int action = lyxaction.LookupFunc(frontStrip(s));
  
        if (action == LFUN_UNKNOWN_ACTION) {
                string const msg = string(_("Unknown function ("))
-                       + cmd + ")";
+                       + s + ")";
                owner->message(msg);
        } else {
                verboseDispatch(action, show_sc);