summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorportix <none@none>2012-11-01 17:35:17 +0100
committerportix <none@none>2012-11-01 17:35:17 +0100
commit3282974ab06c3f20939026311388100526fce051 (patch)
tree8cd305e20f66e648d23ca35b229bb68f53975f08 /src
parent3da3defd89ea9213397bab7ec5908639b3594391 (diff)
downloaddwb-3282974ab06c3f20939026311388100526fce051.zip
BASIC_MODES macro evaluates to NORMAL_MODE if mode == 0
Diffstat (limited to 'src')
-rw-r--r--src/dwb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dwb.h b/src/dwb.h
index 33e4274f..b73dc2b2 100644
--- a/src/dwb.h
+++ b/src/dwb.h
@@ -345,7 +345,7 @@ typedef enum {
SETTINGS_MODE_LOCAL = 1<<22,
COMPLETE_SCRIPTS = 1<<23,
} Mode;
-#define BASIC_MODES(mode) (mode & (NORMAL_MODE | INSERT_MODE | COMMAND_MODE))
+#define BASIC_MODES(mode) ( MAX( ( (mode) & (NORMAL_MODE | INSERT_MODE | COMMAND_MODE) ), NORMAL_MODE) )
typedef enum {