aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/vi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/vi.c b/editors/vi.c
index 74566499c..461cf9889 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -136,9 +136,9 @@ static char last_forward_char; // last char searched for with 'f'
136#if ENABLE_FEATURE_VI_READONLY 136#if ENABLE_FEATURE_VI_READONLY
137//static smallint vi_readonly, readonly; 137//static smallint vi_readonly, readonly;
138static smallint readonly_mode = 0; 138static smallint readonly_mode = 0;
139#define SET_READONLY_FILE(flags) ((flags) |= 0x01) 139#define SET_READONLY_FILE(flags) ((flags) |= 0x01)
140#define SET_READONLY_MODE(flags) ((flags) |= 0x02) 140#define SET_READONLY_MODE(flags) ((flags) |= 0x02)
141#define UNSET_READONLY_FILE(flags) ((flags) &= 0xfe) 141#define UNSET_READONLY_FILE(flags) ((flags) &= 0xfe)
142#else 142#else
143#define readonly_mode 0 143#define readonly_mode 0
144#define SET_READONLY_FILE(flags) 144#define SET_READONLY_FILE(flags)