aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-13 09:46:41 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-13 09:46:41 +0100
commit3c395e56140c991ea776fedde0eaba230060c767 (patch)
tree82b629ddbfc6127b9f9e5f2b8745b5c35d4dc701 /parser.cpp
parent5db6dee299389eb3b939ca5d6ebfcefceb40c4c5 (diff)
downloadsciteco-3c395e56140c991ea776fedde0eaba230060c767.tar.gz
added EW...$ command
* EW$ saves file with its current filename * EW<filename>$ saves file with under the specified filename (Save As) * files are stored with absolute paths in the ring
Diffstat (limited to 'parser.cpp')
-rw-r--r--parser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/parser.cpp b/parser.cpp
index 2e141f6..af691f0 100644
--- a/parser.cpp
+++ b/parser.cpp
@@ -892,7 +892,8 @@ StateControl::custom(gchar chr)
StateECommand::StateECommand() : State()
{
transitions['\0'] = this;
- transitions['B'] = &States::file;
+ transitions['B'] = &States::editfile;
+ transitions['W'] = &States::savefile;
transitions['Q'] = &States::eqcommand;
}