Mercurial > hg > octave-lyh
comparison src/input.cc @ 3176:fccab8e7d35f
[project @ 1998-05-18 20:33:31 by jwe]
author | jwe |
---|---|
date | Mon, 18 May 1998 20:33:42 +0000 |
parents | e4bbfc196e53 |
children | c17387059fd3 |
comparison
equal
deleted
inserted
replaced
3175:096940972434 | 3176:fccab8e7d35f |
---|---|
220 if (! current_input_line.empty ()) | 220 if (! current_input_line.empty ()) |
221 { | 221 { |
222 if (! input_from_startup_file) | 222 if (! input_from_startup_file) |
223 command_history::add (current_input_line); | 223 command_history::add (current_input_line); |
224 | 224 |
225 octave_diary << current_input_line; | 225 if (! (reading_fcn_file || reading_script_file)) |
226 { | |
227 octave_diary << current_input_line; | |
228 | |
229 if (current_input_line[current_input_line.length () - 1] != '\n') | |
230 octave_diary << "\n"; | |
231 } | |
226 | 232 |
227 do_input_echo (current_input_line); | 233 do_input_echo (current_input_line); |
228 } | 234 } |
229 | 235 else if (! (reading_fcn_file || reading_script_file)) |
230 octave_diary << "\n"; | 236 octave_diary << "\n"; |
231 | 237 |
232 return retval; | 238 return retval; |
233 } | 239 } |
234 | 240 |
235 // Read a line from the input stream. | 241 // Read a line from the input stream. |