# HG changeset patch # User John W. Eaton # Date 1367113548 14400 # Node ID 1a1f8199b5bb73321718ceccbff5c07ec0f17ddc # Parent b678d2d10e53441e9755224fadcd65238c54559d generate single-line commands from workspace view context menu * workspace-view.cc (workspace_view::handle_contextmenu_plot, workspace_view::handle_contextmenu_stem): Don't insert newline after figure command. (workspace_view::handle_contextmenu_command): Don't append newline to command string. diff --git a/libgui/src/workspace-view.cc b/libgui/src/workspace-view.cc --- a/libgui/src/workspace-view.cc +++ b/libgui/src/workspace-view.cc @@ -196,19 +196,19 @@ void workspace_view::handle_contextmenu_disp (void) { - relay_contextmenu_command ("disp"); + relay_contextmenu_command ("disp"); } void workspace_view::handle_contextmenu_plot (void) { - relay_contextmenu_command ("figure;\nplot"); + relay_contextmenu_command ("figure (); plot"); } void workspace_view::handle_contextmenu_stem (void) { - relay_contextmenu_command ("figure;\nstem"); + relay_contextmenu_command ("figure (); stem"); } void @@ -226,7 +226,7 @@ QString var_name = item_data[0].toString (); - emit command_requested (cmdname + "(" + var_name + ")\n"); + emit command_requested (cmdname + " (" + var_name + ");"); } }