remove some more of this ugliness

This commit is contained in:
tg
2010-01-29 09:34:31 +00:00
parent c67bed8790
commit 4eb17f8752
9 changed files with 109 additions and 84 deletions

6
edit.c
View File

@ -25,7 +25,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.188 2010/01/08 22:21:04 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.189 2010/01/29 09:34:26 tg Exp $");
/* tty driver characters we are interested in */
typedef struct {
@ -4034,7 +4034,7 @@ vi_cmd(int argcnt, const char *cmd)
case 'g':
if (!argcnt)
argcnt = hlast;
/* FALLTHRU */
/* FALLTHROUGH */
case 'G':
if (!argcnt)
argcnt = 1;
@ -4188,7 +4188,7 @@ vi_cmd(int argcnt, const char *cmd)
c3 = 1;
srchlen = 0;
lastsearch = *cmd;
/* FALLTHRU */
/* FALLTHROUGH */
case 'n':
case 'N':
if (lastsearch == ' ')