diff options
author | James McCoy <jamessan@jamessan.com> | 2017-04-20 01:17:42 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-05-12 12:01:25 -0400 |
commit | 0ff959329bb8a8ae22856a65b5289b41bdae433a (patch) | |
tree | 26329b6d1a18613fad9212f48fd98e88a8c50cbb /src/nvim/edit.c | |
parent | d840ff7b7019a08171c07568c1fdd0841f6dd07e (diff) | |
download | rneovim-0ff959329bb8a8ae22856a65b5289b41bdae433a.tar.gz rneovim-0ff959329bb8a8ae22856a65b5289b41bdae433a.tar.bz2 rneovim-0ff959329bb8a8ae22856a65b5289b41bdae433a.zip |
*: Comment intentional fallthroughs
Falling through a switch case should be commented so it's clear that
behavior is intentional.
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 678fa851eb..b8aa3167fe 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -4916,13 +4916,16 @@ static unsigned quote_meta(char_u *dest, char_u *src, int len) if (ctrl_x_mode == CTRL_X_DICTIONARY || ctrl_x_mode == CTRL_X_THESAURUS) break; + // fallthrough case '~': if (!p_magic) /* quote these only if magic is set */ break; + // fallthrough case '\\': if (ctrl_x_mode == CTRL_X_DICTIONARY || ctrl_x_mode == CTRL_X_THESAURUS) break; + // fallthrough case '^': /* currently it's not needed. */ case '$': m++; |