From 3db5b1a40bf6b503b26827355f40033b1047a123 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 19 Nov 2012 21:02:23 +0100 Subject: disable ^U string building characters (by default) some method to reenable it will be developed in the future (perhaps using a separate command, or a special modifier which reverses a string commands default handling of building character) --- parser.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'parser.h') diff --git a/parser.h b/parser.h index 3047c50..ba3a632 100644 --- a/parser.h +++ b/parser.h @@ -110,8 +110,11 @@ class StateExpectString : public State { mode(MODE_NORMAL), toctl(false) {} } machine; + bool string_building; + public: - StateExpectString() : State() {} + StateExpectString(bool _building = true) + : State(), string_building(_building) {} private: gchar *machine_input(gchar key) throw (Error); -- cgit v1.2.3