aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Bürgin <676c7473@gmail.com>2015-04-26 11:13:31 +0200
committerMichael Reed <m.reed@mykolab.com>2015-05-05 17:04:03 -0400
commitb6af1afee6eab0a430533efcbb8af6c6b1ffe585 (patch)
treec079de02306f94a0ca8a47c2e3cf138588bf9438 /src
parent8337cd957e929d41833bca5ed928e3c73ee88301 (diff)
downloadrneovim-b6af1afee6eab0a430533efcbb8af6c6b1ffe585.tar.gz
rneovim-b6af1afee6eab0a430533efcbb8af6c6b1ffe585.tar.bz2
rneovim-b6af1afee6eab0a430533efcbb8af6c6b1ffe585.zip
vim-patch:7.4.564 #2591
Problem: FEAT_OSFILETYPE is used even though it's never defined. Solution: Remove the code. (Christian Brabandt) https://github.com/vim/vim/commit/v7-4-564 Not applicable, this code has already been removed in Neovim. Included some of the style tweaks.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/fileio.c20
-rw-r--r--src/nvim/version.c2
2 files changed, 10 insertions, 12 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index 44bed92133..98a2cb4076 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -7167,14 +7167,14 @@ static bool match_file_pat(char_u *pattern, regprog_T **prog, char_u *fname,
* 2. the short file name, when the pattern has a '/'.
* 3. the tail of the file name, when the pattern has no '/'.
*/
- if (
- (regmatch.regprog != NULL
- && ((allow_dirs
- && (vim_regexec(&regmatch, fname, (colnr_T)0)
- || (sfname != NULL
- && vim_regexec(&regmatch, sfname, (colnr_T)0))))
- || (!allow_dirs && vim_regexec(&regmatch, tail, (colnr_T)0)))))
+ if (regmatch.regprog != NULL
+ && ((allow_dirs
+ && (vim_regexec(&regmatch, fname, (colnr_T)0)
+ || (sfname != NULL
+ && vim_regexec(&regmatch, sfname, (colnr_T)0))))
+ || (!allow_dirs && vim_regexec(&regmatch, tail, (colnr_T)0)))) {
result = true;
+ }
if (prog != NULL) {
*prog = regmatch.regprog;
@@ -7233,11 +7233,9 @@ file_pat_to_reg_pat (
int no_bslash /* Don't use a backward slash as pathsep */
)
{
- size_t size;
char_u *endp;
char_u *reg_pat;
char_u *p;
- int i;
int nested = 0;
int add_dollar = TRUE;
@@ -7246,7 +7244,7 @@ file_pat_to_reg_pat (
if (pat_end == NULL)
pat_end = pat + STRLEN(pat);
- size = 2; /* '^' at start, '$' at end */
+ size_t size = 2; // '^' at start, '$' at end.
for (p = pat; p < pat_end; p++) {
switch (*p) {
@@ -7275,7 +7273,7 @@ file_pat_to_reg_pat (
}
reg_pat = xmalloc(size + 1);
- i = 0;
+ size_t i = 0;
if (pat[0] == '*')
while (pat[0] == '*' && pat < pat_end - 1)
diff --git a/src/nvim/version.c b/src/nvim/version.c
index dc0454ffc1..2eb2d5c4ae 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -219,7 +219,7 @@ static int included_patches[] = {
567,
566,
565,
- //564,
+ //564 NA
563,
//562,
561,