aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cmdline.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmdline.h')
-rw-r--r--src/cmdline.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/cmdline.h b/src/cmdline.h
index 8b01df8..66e1829 100644
--- a/src/cmdline.h
+++ b/src/cmdline.h
@@ -27,6 +27,13 @@
namespace SciTECO {
+/*
+ * NOTE: Some of the members (esp. insert() and rubout())
+ * have to be public, so that State::process_edit_cmd()
+ * implementations can access it.
+ * Otherwise, we'd have to list all implementations as
+ * friend methods, which is inelegant.
+ */
extern class Cmdline : public Object {
public:
/**
@@ -68,9 +75,6 @@ public:
void replace(void) G_GNUC_NORETURN;
-private:
- void process_edit_cmd(gchar key);
-
inline void
rubout(void)
{
@@ -80,14 +84,6 @@ private:
}
}
- inline void
- rubout_command(void)
- {
- do
- rubout();
- while (States::current != &States::start);
- }
-
void insert(const gchar *src = NULL);
inline void
insert(gchar key)