diff options
author | portix <none@none> | 2012-11-01 17:35:17 +0100 |
---|---|---|
committer | portix <none@none> | 2012-11-01 17:35:17 +0100 |
commit | 3282974ab06c3f20939026311388100526fce051 (patch) | |
tree | 8cd305e20f66e648d23ca35b229bb68f53975f08 /src/dwb.h | |
parent | 3da3defd89ea9213397bab7ec5908639b3594391 (diff) | |
download | dwb-3282974ab06c3f20939026311388100526fce051.zip |
BASIC_MODES macro evaluates to NORMAL_MODE if mode == 0
Diffstat (limited to 'src/dwb.h')
-rw-r--r-- | src/dwb.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |