Revision: 34913
http://sourceforge.net/p/opalvoip/code/34913
Author: rjongbloed
Date: 2016-08-12 15:48:36 +0000 (Fri, 12 Aug 2016)
Log Message:
-----------
Fixed !! command in Command Line Interpreter.
Modified Paths:
--------------
ptlib/branches/v2_16/src/ptclib/cli.cxx
Modified: ptlib/branches/v2_16/src/ptclib/cli.cxx
===================================================================
--- ptlib/branches/v2_16/src/ptclib/cli.cxx 2016-08-09 14:27:35 UTC (rev 34912)
+++ ptlib/branches/v2_16/src/ptclib/cli.cxx 2016-08-12 15:48:36 UTC (rev 34913)
@@ -466,6 +466,8 @@
line = m_commandHistory[cmdNum-1];
}
+ m_commandHistory += line;
+
if (CheckInternalCommand(line, m_cli.GetHelpCommand()))
m_cli.ShowHelp(*this, line);
else {
@@ -474,8 +476,6 @@
m_cli.OnReceivedLine(args);
m_state = e_CommandEntry;
}
-
- m_commandHistory += line;
}
@@ -554,7 +554,7 @@
"\n"
"Commands available are:")
, m_repeatCommand("!!")
- , m_historyCommand("!")
+ , m_historyCommand("!\nhistory")
, m_noHistoryError("No command history")
, m_commandUsagePrefix("Usage: ")
, m_commandErrorPrefix(": error: ")
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|