command: Put command_ids in output into title case.
[pspp] / src / ui / terminal / main.c
index f7ec11520a95a573bf07a59088d545b373185dc0..bbcc896958052b4c1a0b2c69042bfaed8629156b 100644 (file)
@@ -160,13 +160,13 @@ main (int argc, char **argv)
     }
 
 
+  output_engine_pop ();
   session_destroy (the_session);
 
   random_done ();
   settings_done ();
   fh_done ();
   lex_destroy (lexer);
-  output_engine_pop ();
   i18n_done ();
 
   return msg_ui_any_errors ();
@@ -226,7 +226,11 @@ output_msg (const struct msg *m_, void *lexer_)
       m.last_line = lex_get_last_line_number (lexer, 0);
     }
 
+  m.command_name = output_get_command_name ();
+
   message_item_submit (message_item_create (&m));
+
+  free (m.command_name);
 }
 
 static void