Mercurial > hg > octave-terminal
changeset 14879:bc6c099eacc0 gui
Removed cd'ing back after running a script for compatibility with less.
* file-editor-tab.cc: Removed cd'ing back after running the m-file.
author | Jacob Dawid <jacob.dawid@gmail.com> |
---|---|
date | Wed, 18 Jul 2012 17:06:59 -0400 |
parents | 3fd857c284fe |
children | a6c44c28dabe |
files | gui/src/m-editor/file-editor-tab.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/src/m-editor/file-editor-tab.cc +++ b/gui/src/m-editor/file-editor-tab.cc @@ -725,7 +725,7 @@ // We have to cut off the suffix, because octave appends it. function_name.chop (file_info.suffix ().length () + 1); - _file_editor->terminal ()->sendText (QString ("cd \'%1\'\n%2\ncd \'%3\'\n\n") + _file_editor->terminal ()->sendText (QString ("cd \'%1\'\n%2\n") .arg(path).arg (function_name).arg (current_path)); // TODO: Sending a run event crashes for long scripts. Find out why. // octave_link::instance ()