~versable/finalterm/finalterm

« back to all changes in this revision

Viewing changes to src/TerminalOutput.vala

  • Committer: Philipp Emanuel Weidmann
  • Date: 2014-11-15 12:57:09 UTC
  • Revision ID: git-v1:39b078b2a96a5c3c9e74f92b1929f383d220ca8b
Fix #377

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
        private string transient_text = "";
71
71
        private string printed_transient_text = "";
72
72
 
73
 
        public string last_command = null;
 
73
        public string last_command = "";
74
74
 
75
75
        public bool command_mode = false;
76
76
        public CursorPosition command_start_position;
395
395
                        case TerminalStream.StreamElement.ControlSequenceType.FTCS_COMMAND_FINISHED:
396
396
                                var return_code = stream_element.get_numeric_parameter(0, 0);
397
397
 
398
 
                                if (last_command != null) {
 
398
                                if (last_command != "") {
399
399
                                        command_finished(last_command, return_code);
400
400
                                        progress_finished();
401
401