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)
|
if ((c = TTYget()) == EOF)
|
||||||
return CSeof;
|
return CSeof;
|
||||||
/* Also include VT-100 arrows. */
|
/* Also include VT-100 arrows. */
|
||||||
if (c == '[' || c == 'O')
|
if (c == '[' || c == 'O') {
|
||||||
switch (c = TTYget()) {
|
switch (TTYget()) {
|
||||||
default: return ring_bell();
|
|
||||||
case EOF: return CSeof;
|
case EOF: return CSeof;
|
||||||
case 'A': return h_prev();
|
case 'A': return h_prev();
|
||||||
case 'B': return h_next();
|
case 'B': return h_next();
|
||||||
case 'C': return fd_char();
|
case 'C': return fd_char();
|
||||||
case 'D': return bk_char();
|
case 'D': return bk_char();
|
||||||
}
|
}
|
||||||
|
return ring_bell();
|
||||||
|
}
|
||||||
|
|
||||||
if (isdigit(c)) {
|
if (isdigit(c)) {
|
||||||
for (Repeat = c - '0'; (c = TTYget()) != EOF && isdigit(c); )
|
for (Repeat = c - '0'; (c = TTYget()) != EOF && isdigit(c); )
|
||||||
|
Reference in New Issue
Block a user