diff options
author | James McCoy <jamessan@jamessan.com> | 2017-05-13 07:51:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-13 07:51:01 -0400 |
commit | ac47f8a50691e6ce99c54712e5c984db8b1f079e (patch) | |
tree | f6863f960fe46983b5efb2a84db0bed6f8c80b75 /src/nvim/edit.c | |
parent | ae3d5e5ecc32f4ca6a29976880f225a716bad44b (diff) | |
parent | f3a508b4a3c13cc755b355976c6e0f2fae7e1645 (diff) | |
download | rneovim-ac47f8a50691e6ce99c54712e5c984db8b1f079e.tar.gz rneovim-ac47f8a50691e6ce99c54712e5c984db8b1f079e.tar.bz2 rneovim-ac47f8a50691e6ce99c54712e5c984db8b1f079e.zip |
Merge pull request #6514 from jamessan/gcc-7-fixes
Fix GCC 7 issues
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 678fa851eb..bfdec90a32 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -4916,14 +4916,17 @@ 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; - case '^': /* currently it's not needed. */ + // fallthrough + case '^': // currently it's not needed. case '$': m++; if (dest != NULL) |