summaryrefslogtreecommitdiff
path: root/src/os_amiga.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-12-19 22:46:22 +0000
committerBram Moolenaar <Bram@vim.org>2004-12-19 22:46:22 +0000
commit1cd871b5341bf43ee99e136844e3131014880f92 (patch)
tree6bd9573dbc14de3c4ec85e424cbec9c8d1ee0ed8 /src/os_amiga.c
parent46c9c73de8def79baf8f0a34a12549f6c14944f3 (diff)
downloadvim-git-1cd871b5341bf43ee99e136844e3131014880f92.tar.gz
updated for version 7.0023v7.0023
Diffstat (limited to 'src/os_amiga.c')
-rw-r--r--src/os_amiga.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/os_amiga.c b/src/os_amiga.c
index f462ccc59..772bdcf80 100644
--- a/src/os_amiga.c
+++ b/src/os_amiga.c
@@ -1501,7 +1501,7 @@ sortcmp(a, b)
char *s = *(char **)a;
char *t = *(char **)b;
- return pathcmp(s, t);
+ return pathcmp(s, t, -1);
}
/*
@@ -1511,16 +1511,12 @@ sortcmp(a, b)
mch_has_exp_wildcard(p)
char_u *p;
{
- for ( ; *p; ++p)
+ for ( ; *p; mb_ptr_adv(p))
{
if (*p == '\\' && p[1] != NUL)
++p;
else if (vim_strchr((char_u *)"*?[(#", *p) != NULL)
return TRUE;
-#ifdef FEAT_MBYTE
- if (has_mbyte)
- p += (*mb_ptr2len_check)(p) - 1;
-#endif
}
return FALSE;
}
@@ -1529,7 +1525,7 @@ mch_has_exp_wildcard(p)
mch_has_wildcard(p)
char_u *p;
{
- for ( ; *p; ++p)
+ for ( ; *p; mb_ptr_adv(p))
{
if (*p == '\\' && p[1] != NUL)
++p;
@@ -1543,10 +1539,6 @@ mch_has_wildcard(p)
, *p) != NULL
|| (*p == '~' && p[1] != NUL))
return TRUE;
-#ifdef FEAT_MBYTE
- if (has_mbyte)
- p += (*mb_ptr2len_check)(p) - 1;
-#endif
}
return FALSE;
}