patch 8.1.0343: 'shellslash' is not used for getcwd() with local directory
Problem: 'shellslash' is not used for getcwd() with local directory.
(Daniel Hahler)
Solution: Call slash_adjust() later. (closes #3399)
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 3c64212..8a1fcef 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -4955,11 +4955,11 @@
vim_free(cwd);
}
}
-#ifdef BACKSLASH_IN_FILENAME
- if (rettv->vval.v_string != NULL)
- slash_adjust(rettv->vval.v_string);
-#endif
}
+#ifdef BACKSLASH_IN_FILENAME
+ if (rettv->vval.v_string != NULL)
+ slash_adjust(rettv->vval.v_string);
+#endif
}
/*
diff --git a/src/version.c b/src/version.c
index b88258e..1077b9a 100644
--- a/src/version.c
+++ b/src/version.c
@@ -795,6 +795,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 343,
+/**/
342,
/**/
341,