summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/main.cc
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-01-16 02:04:14 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-01-16 02:04:14 +0100
commite398d71d3e5f02d79806554df21de9e29fb627ef (patch)
treee29fbd10f1233c4a31624f51aa09bce6bc2afd49 /crawl-ref/source/main.cc
parent91c7e659794944626fd763ea3123d52ee9d2b836 (diff)
downloadcrawl-ref-e398d71d3e5f02d79806554df21de9e29fb627ef.tar.gz
crawl-ref-e398d71d3e5f02d79806554df21de9e29fb627ef.zip
Add pseudocommand CMD_NO_CMD_DEFAULT for overriding the vi keys.
CMD_NO_CMD is handled specially in many different ways, but the new command's sole purpose is to allow key bindings involving invalid commands, so as to override the vi keys for players who don't need them, don't want to replace them with other keys, but are worried about typos making their character walk into a fatal ambush.
Diffstat (limited to 'crawl-ref/source/main.cc')
-rw-r--r--crawl-ref/source/main.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/main.cc b/crawl-ref/source/main.cc
index 3d9e0694b2..7d74fef068 100644
--- a/crawl-ref/source/main.cc
+++ b/crawl-ref/source/main.cc
@@ -853,6 +853,7 @@ static bool _cmd_is_repeatable(command_type cmd, bool is_again = false)
return (true);
case CMD_NO_CMD:
+ case CMD_NO_CMD_DEFAULT:
mpr("Unknown command, not repeating.");
return (false);