don't set unused variables, make it more obvious that the switchstatement return.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24872 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -811,15 +811,16 @@ meta(void)
|
||||
if ((c = TTYget()) == EOF)
|
||||
return CSeof;
|
||||
/* Also include VT-100 arrows. */
|
||||
if (c == '[' || c == 'O')
|
||||
switch (c = TTYget()) {
|
||||
default: return ring_bell();
|
||||
if (c == '[' || c == 'O') {
|
||||
switch (TTYget()) {
|
||||
case EOF: return CSeof;
|
||||
case 'A': return h_prev();
|
||||
case 'B': return h_next();
|
||||
case 'C': return fd_char();
|
||||
case 'D': return bk_char();
|
||||
}
|
||||
return ring_bell();
|
||||
}
|
||||
|
||||
if (isdigit(c)) {
|
||||
for (Repeat = c - '0'; (c = TTYget()) != EOF && isdigit(c); )
|
||||
|
Reference in New Issue
Block a user