remove unneeded breaks at the ends of default: clauses
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1524 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
4d7c260270
commit
a9cebd8054
|
@ -19,6 +19,7 @@ CVS code -
|
||||||
the problem with Backspace/Delete confusion on some terminals,
|
the problem with Backspace/Delete confusion on some terminals,
|
||||||
notably FreeBSD; if your Backspace key acts like Delete, this
|
notably FreeBSD; if your Backspace key acts like Delete, this
|
||||||
option will fix that. (DLR)
|
option will fix that. (DLR)
|
||||||
|
- Remove unneeded breaks at the ends of default: clauses. (DLR)
|
||||||
- files.c:
|
- files.c:
|
||||||
do_browser():
|
do_browser():
|
||||||
- Some of the Pico compatibility options in the file browser
|
- Some of the Pico compatibility options in the file browser
|
||||||
|
|
1
files.c
1
files.c
|
@ -2269,7 +2269,6 @@ char *input_tab(char *buf, int place, int *lastwastab, int *newplace, int *list)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* Ok -- the last char was a TAB. Since they
|
/* Ok -- the last char was a TAB. Since they
|
||||||
|
|
1
nano.c
1
nano.c
|
@ -3498,7 +3498,6 @@ int main(int argc, char *argv[])
|
||||||
fprintf(stderr, "I got Alt-%c! (%d)\n", kbinput,
|
fprintf(stderr, "I got Alt-%c! (%d)\n", kbinput,
|
||||||
kbinput);
|
kbinput);
|
||||||
#endif
|
#endif
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
6
winio.c
6
winio.c
|
@ -157,7 +157,6 @@ int get_accepted_kbinput(WINDOW *win, int kbinput, int *meta,
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
kbinput = get_escape_seq_kbinput(win, kbinput);
|
kbinput = get_escape_seq_kbinput(win, kbinput);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
nodelay(win, FALSE);
|
nodelay(win, FALSE);
|
||||||
break;
|
break;
|
||||||
|
@ -170,7 +169,6 @@ int get_accepted_kbinput(WINDOW *win, int kbinput, int *meta,
|
||||||
if (isupper(kbinput))
|
if (isupper(kbinput))
|
||||||
kbinput = tolower(kbinput);
|
kbinput = tolower(kbinput);
|
||||||
*meta = 1;
|
*meta = 1;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case KEY_DOWN:
|
case KEY_DOWN:
|
||||||
|
@ -215,8 +213,6 @@ int get_accepted_kbinput(WINDOW *win, int kbinput, int *meta,
|
||||||
case KEY_SUSPEND:
|
case KEY_SUSPEND:
|
||||||
kbinput = NANO_SUSPEND_KEY;
|
kbinput = NANO_SUSPEND_KEY;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
fprintf(stderr, "get_accepted_kbinput(): kbinput = %d, meta = %d\n", kbinput, *meta);
|
fprintf(stderr, "get_accepted_kbinput(): kbinput = %d, meta = %d\n", kbinput, *meta);
|
||||||
|
@ -300,8 +296,6 @@ int get_escape_seq_kbinput(WINDOW *win, int kbinput)
|
||||||
/* Esc [ 3 ~ == kdch1 on many terminals. */
|
/* Esc [ 3 ~ == kdch1 on many terminals. */
|
||||||
kbinput = get_skip_tilde_kbinput(win, kbinput, NANO_DELETE_KEY);
|
kbinput = get_skip_tilde_kbinput(win, kbinput, NANO_DELETE_KEY);
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
return kbinput;
|
return kbinput;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue