summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpixel <pixel>2005-04-03 19:39:06 +0000
committerpixel <pixel>2005-04-03 19:39:06 +0000
commitede779459d2c3c370e1838546b27a67f744af556 (patch)
tree3655b485e4dc68749dcea0bdf597f8ee966a4c5c
parent36c80c572647e593220c03ef038c16ec0ad4bf1a (diff)
Fixing that damn "multi line" bug.
-rw-r--r--cd-tool.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/cd-tool.cpp b/cd-tool.cpp
index 5e9a231..16e24f0 100644
--- a/cd-tool.cpp
+++ b/cd-tool.cpp
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: cd-tool.cpp,v 1.42 2005-03-31 16:23:03 pixel Exp $ */
+/* $Id: cd-tool.cpp,v 1.43 2005-04-03 19:39:06 pixel Exp $ */
#define WIP
@@ -668,7 +668,7 @@ virtual int startup() throw (GeneralException) {
line[line.strlen() - 1] = ' ';
} else if (auto_exec) {
runit = true;
- }
+ }
command << line;
@@ -691,9 +691,10 @@ virtual int startup() throw (GeneralException) {
strcpy(prompt, "> ");
} else {
strcpy(prompt, "- ");
+ command << "\n";
}
line = endline.trim();
- };
+ }
}
/* Finishing off the work, cleaning out the dust */