summaryrefslogtreecommitdiff
path: root/src/spellfile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-23 21:35:48 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-23 21:35:48 +0200
commit99499b1c05f85f83876b828eea3f6e14f0f407b4 (patch)
tree88da7aeb6c66daf0c6555388952334efa8cb642e /src/spellfile.c
parent05b8b07e2770b66ab77fdb5e195cae809959bdab (diff)
downloadvim-git-99499b1c05f85f83876b828eea3f6e14f0f407b4.tar.gz
patch 8.1.1371: cannot recover from a swap filev8.1.1371
Problem: Cannot recover from a swap file. Solution: Do not expand environment variables in the swap file name. Do not check the extension when we already know a file is a swap file. (Ken Takata, closes 4415, closes #4369)
Diffstat (limited to 'src/spellfile.c')
-rw-r--r--src/spellfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spellfile.c b/src/spellfile.c
index 2616afbbb..00c72f6f1 100644
--- a/src/spellfile.c
+++ b/src/spellfile.c
@@ -1734,7 +1734,7 @@ spell_reload_one(
for (slang = first_lang; slang != NULL; slang = slang->sl_next)
{
- if (fullpathcmp(fname, slang->sl_fname, FALSE) == FPC_SAME)
+ if (fullpathcmp(fname, slang->sl_fname, FALSE, TRUE) == FPC_SAME)
{
slang_clear(slang);
if (spell_load_file(fname, NULL, slang, FALSE) == NULL)
@@ -5440,7 +5440,7 @@ spell_make_sugfile(spellinfo_T *spin, char_u *wfname)
* It might have been done already by spell_reload_one().
*/
for (slang = first_lang; slang != NULL; slang = slang->sl_next)
- if (fullpathcmp(wfname, slang->sl_fname, FALSE) == FPC_SAME)
+ if (fullpathcmp(wfname, slang->sl_fname, FALSE, TRUE) == FPC_SAME)
break;
if (slang == NULL)
{