]> git.wh0rd.org Git - nano.git/commitdiff
remove unneeded breaks at the ends of default: clauses
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Sun, 17 Aug 2003 03:31:57 +0000 (03:31 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Sun, 17 Aug 2003 03:31:57 +0000 (03:31 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1524 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
files.c
nano.c
winio.c

index 1cbd48325f92a1459a96c51c8d343ee44e854400..ae148e35acd31d8643da9b9793fe7a15467b431b 100644 (file)
--- 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 4193a932756f26e0d25532373cb8c531f50fc2cf..4d1d98cbe224fc3263a9fbdb283fb25c95824a3b 100644 (file)
--- 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 c7bb5f528633d946c5fda5b36f7ca1ff96c0cf47..cbdbdb1f691cc43b46e29d9584a8616d5f63d46d 100644 (file)
--- 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 1a7590023c595b0663deda6df4c1bb91130aee18..57d9d6295b84005b8cc88b6acd8506cf936e98c4 100644 (file)
--- 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;
 }