diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-01-06 14:05:17 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-01-06 14:05:17 +0100 |
| commit | b84d93ce6db52805a8816412e4bf93d22f078e53 (patch) | |
| tree | 8fcfe0e81812544929d63aaffa35f47c54368f70 /config.def.h | |
| parent | 4e75766e915d78cb47008aae805807a2ad038935 (diff) | |
| download | vis-b84d93ce6db52805a8816412e4bf93d22f078e53.tar.gz vis-b84d93ce6db52805a8816412e4bf93d22f078e53.tar.xz | |
Fix some compiler warnings
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h index 370fb1b..54d6d7c 100644 --- a/config.def.h +++ b/config.def.h @@ -22,8 +22,6 @@ * if no binding is found, mode->input(...) is called and the user entered * keys are passed as argument. this is used to change the document content. */ -static Mode vis_modes[]; - enum { VIS_MODE_BASIC, VIS_MODE_MARK, @@ -43,8 +41,11 @@ enum { VIS_MODE_INSERT_REGISTER, VIS_MODE_INSERT, VIS_MODE_REPLACE, + VIS_MODE_LAST, }; +static Mode vis_modes[VIS_MODE_LAST]; + /* command recognized at the ':'-prompt. tested top to bottom, first match wins. */ static Command cmds[] = { { "^bd(elete)?!?$", cmd_bdelete, false }, |
