Mercurial > vim
comparison src/normal.c @ 12674:e769c912fcd9 v8.0.1215
patch 8.0.1215: newer gcc warns for implicit fallthrough
commit https://github.com/vim/vim/commit/2f40d129bf45cd35976e4120336ae6d504f5a5dd
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Oct 24 21:49:36 2017 +0200
patch 8.0.1215: newer gcc warns for implicit fallthrough
Problem: Newer gcc warns for implicit fallthrough.
Solution: Consistently use a FALLTHROUGH comment. (Christian Brabandt)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 24 Oct 2017 22:00:06 +0200 |
parents | b908a3682f6e |
children | ebb4f6c93598 |
comparison
equal
deleted
inserted
replaced
12673:2b845e7b9727 | 12674:e769c912fcd9 |
---|---|
1943 case OP_FILTER: | 1943 case OP_FILTER: |
1944 if (vim_strchr(p_cpo, CPO_FILTER) != NULL) | 1944 if (vim_strchr(p_cpo, CPO_FILTER) != NULL) |
1945 AppendToRedobuff((char_u *)"!\r"); /* use any last used !cmd */ | 1945 AppendToRedobuff((char_u *)"!\r"); /* use any last used !cmd */ |
1946 else | 1946 else |
1947 bangredo = TRUE; /* do_bang() will put cmd in redo buffer */ | 1947 bangredo = TRUE; /* do_bang() will put cmd in redo buffer */ |
1948 /* FALLTHROUGH */ | |
1948 | 1949 |
1949 case OP_INDENT: | 1950 case OP_INDENT: |
1950 case OP_COLON: | 1951 case OP_COLON: |
1951 | 1952 |
1952 #if defined(FEAT_LISP) || defined(FEAT_CINDENT) | 1953 #if defined(FEAT_LISP) || defined(FEAT_CINDENT) |
5148 { | 5149 { |
5149 clearopbeep(cap->oap); | 5150 clearopbeep(cap->oap); |
5150 break; | 5151 break; |
5151 } | 5152 } |
5152 undo = TRUE; | 5153 undo = TRUE; |
5153 /*FALLTHROUGH*/ | 5154 /* FALLTHROUGH */ |
5154 | 5155 |
5155 case 'g': /* "zg": add good word to word list */ | 5156 case 'g': /* "zg": add good word to word list */ |
5156 case 'w': /* "zw": add wrong word to word list */ | 5157 case 'w': /* "zw": add wrong word to word list */ |
5157 case 'G': /* "zG": add good word to temp word list */ | 5158 case 'G': /* "zG": add good word to temp word list */ |
5158 case 'W': /* "zW": add wrong word to temp word list */ | 5159 case 'W': /* "zW": add wrong word to temp word list */ |
8265 #endif | 8266 #endif |
8266 | 8267 |
8267 /* "g'm" and "g`m": jump to mark without setting pcmark */ | 8268 /* "g'm" and "g`m": jump to mark without setting pcmark */ |
8268 case '\'': | 8269 case '\'': |
8269 cap->arg = TRUE; | 8270 cap->arg = TRUE; |
8270 /*FALLTHROUGH*/ | 8271 /* FALLTHROUGH */ |
8271 case '`': | 8272 case '`': |
8272 nv_gomark(cap); | 8273 nv_gomark(cap); |
8273 break; | 8274 break; |
8274 | 8275 |
8275 /* | 8276 /* |
8326 * "g@" call 'operatorfunc' | 8327 * "g@" call 'operatorfunc' |
8327 */ | 8328 */ |
8328 case 'q': | 8329 case 'q': |
8329 case 'w': | 8330 case 'w': |
8330 oap->cursor_start = curwin->w_cursor; | 8331 oap->cursor_start = curwin->w_cursor; |
8331 /*FALLTHROUGH*/ | 8332 /* FALLTHROUGH */ |
8332 case '~': | 8333 case '~': |
8333 case 'u': | 8334 case 'u': |
8334 case 'U': | 8335 case 'U': |
8335 case '?': | 8336 case '?': |
8336 case '@': | 8337 case '@': |
9115 case K_PS: | 9116 case K_PS: |
9116 /* Bracketed paste works like "a"ppend, unless the cursor is in | 9117 /* Bracketed paste works like "a"ppend, unless the cursor is in |
9117 * the first column, then it inserts. */ | 9118 * the first column, then it inserts. */ |
9118 if (curwin->w_cursor.col == 0) | 9119 if (curwin->w_cursor.col == 0) |
9119 break; | 9120 break; |
9120 /*FALLTHROUGH*/ | 9121 /* FALLTHROUGH */ |
9121 | 9122 |
9122 case 'a': /* "a"ppend is like "i"nsert on the next character. */ | 9123 case 'a': /* "a"ppend is like "i"nsert on the next character. */ |
9123 #ifdef FEAT_VIRTUALEDIT | 9124 #ifdef FEAT_VIRTUALEDIT |
9124 /* increment coladd when in virtual space, increment the | 9125 /* increment coladd when in virtual space, increment the |
9125 * column otherwise, also to append after an unprintable char */ | 9126 * column otherwise, also to append after an unprintable char */ |