[project @ 1997-05-15 16:47:12 by jwe]
author |
jwe |
date |
Thu, 15 May 1997 16:47:12 +0000 |
parents |
458cea5c8356 |
children |
e330cb788508 |
files |
liboctave/cmd-edit.cc liboctave/cmd-edit.h |
diffstat |
2 files changed, 9 insertions(+), 0 deletions(-)
[+]
|
line diff
--- a/liboctave/cmd-edit.cc
+++ b/liboctave/cmd-edit.cc
@@ -568,6 +568,13 @@
}
void
+command_editor::increment_current_command_number (void)
+{
+ if (instance_ok ())
+ instance->command_number++;
+}
+
+void
command_editor::restore_terminal_state (void)
{
if (instance_ok ())
--- a/liboctave/cmd-edit.h
+++ b/liboctave/cmd-edit.h
@@ -89,6 +89,8 @@
static void reset_current_command_number (int n);
+ static void increment_current_command_number (void);
+
private:
// No copying!