From: David Lawrence Ramsey Date: Sun, 17 Aug 2003 03:31:57 +0000 (+0000) Subject: remove unneeded breaks at the ends of default: clauses X-Git-Tag: v1.3.0~47 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a9cebd80542e4d35db8faa1203b43ff86466decf;p=nano.git 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-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 1cbd4832..ae148e35 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19,6 +19,7 @@ CVS code - the problem with Backspace/Delete confusion on some terminals, notably FreeBSD; if your Backspace key acts like Delete, this option will fix that. (DLR) + - Remove unneeded breaks at the ends of default: clauses. (DLR) - files.c: do_browser(): - Some of the Pico compatibility options in the file browser diff --git a/files.c b/files.c index 4193a932..4d1d98cb 100644 --- a/files.c +++ b/files.c @@ -2269,7 +2269,6 @@ char *input_tab(char *buf, int place, int *lastwastab, int *newplace, int *list) break; } } - break; } } else { /* Ok -- the last char was a TAB. Since they diff --git a/nano.c b/nano.c index c7bb5f52..cbdbdb1f 100644 --- a/nano.c +++ b/nano.c @@ -3498,7 +3498,6 @@ int main(int argc, char *argv[]) fprintf(stderr, "I got Alt-%c! (%d)\n", kbinput, kbinput); #endif - break; } } diff --git a/winio.c b/winio.c index 1a759002..57d9d629 100644 --- a/winio.c +++ b/winio.c @@ -157,7 +157,6 @@ int get_accepted_kbinput(WINDOW *win, int kbinput, int *meta, break; default: kbinput = get_escape_seq_kbinput(win, kbinput); - break; } nodelay(win, FALSE); break; @@ -170,7 +169,6 @@ int get_accepted_kbinput(WINDOW *win, int kbinput, int *meta, if (isupper(kbinput)) kbinput = tolower(kbinput); *meta = 1; - break; } break; case KEY_DOWN: @@ -215,8 +213,6 @@ int get_accepted_kbinput(WINDOW *win, int kbinput, int *meta, case KEY_SUSPEND: kbinput = NANO_SUSPEND_KEY; break; - default: - break; } #ifdef DEBUG 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. */ kbinput = get_skip_tilde_kbinput(win, kbinput, NANO_DELETE_KEY); break; - default: - break; } return kbinput; }