diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-02-03 20:47:29 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-03 20:47:29 +0800 |
| commit | 89e308d7daeb8b2344105877200c7c5ae83760b0 (patch) | |
| tree | 17618e0b9ad59a16e9b4b16e1b8b0d6ea0dcafbf /src/nvim/if_cscope.c | |
| parent | 02d4c9158831be1ed89beb1c840d3d4efcf099c4 (diff) | |
| parent | 2793fcae0ac2aef14c8f22636d579c68a97c0851 (diff) | |
| download | rneovim-89e308d7daeb8b2344105877200c7c5ae83760b0.tar.gz rneovim-89e308d7daeb8b2344105877200c7c5ae83760b0.tar.bz2 rneovim-89e308d7daeb8b2344105877200c7c5ae83760b0.zip | |
Merge pull request #17226 from dundargoc/refactor/remove-redundant-code
vim-patch:8.2.4241: some type casts are redundant
Diffstat (limited to 'src/nvim/if_cscope.c')
| -rw-r--r-- | src/nvim/if_cscope.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/if_cscope.c b/src/nvim/if_cscope.c index daef8db267..9ca01137cf 100644 --- a/src/nvim/if_cscope.c +++ b/src/nvim/if_cscope.c @@ -919,8 +919,8 @@ static int cs_find(exarg_T *eap) /// Common code for cscope find, shared by cs_find() and ex_cstag(). -static bool cs_find_common(char *opt, char *pat, int forceit, int verbose, - bool use_ll, char_u *cmdline) +static bool cs_find_common(char *opt, char *pat, int forceit, int verbose, bool use_ll, + char_u *cmdline) { char *cmd; int *nummatches; @@ -1594,7 +1594,6 @@ static char *cs_pathcomponents(char *path) char *s = path + strlen(path) - 1; for (int i = 0; i < p_cspc; i++) { while (s > path && *--s != '/') { - continue; } } if ((s > path && *s == '/')) { @@ -1813,7 +1812,6 @@ static int cs_read_prompt(size_t i) static void sig_handler(int s) { // do nothing - return; } #endif |