Mercurial > hg > octave-nkf
diff gui/src/m-editor/file-editor-tab.cc @ 14877: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 | 5d74d8b982a5 |
children | 3ad363879015 |
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 ()