vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit a005842c9da011a67bed4ed75aafc2fbff13cb24 parent f9c4c1eec4a98eb84c16e5730f69467f9ecb8194 Author: Marc André Tanner <mat@brain-dump.org> Date: Sun, 28 Jun 2015 21:51:11 +0200 Mark intentional case statement fall through Diffstat:
| M | vis.c | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/vis.c b/vis.c @@ -1895,9 +1895,9 @@ static bool cmd_earlier_later(Filerange *range, enum CmdOpt opt, const char *arg while (*unit && isspace((unsigned char)*unit)) unit++; switch (*unit) { - case 'd': count *= 24; - case 'h': count *= 60; - case 'm': count *= 60; + case 'd': count *= 24; /* fall through */ + case 'h': count *= 60; /* fall through */ + case 'm': count *= 60; /* fall through */ case 's': break; default: editor_info_show(vis, "Unknown time specifier (use: s,m,h or d)");