comparison src/filepath.c @ 20711:d91b8d1e5198 v8.2.0909

patch 8.2.0909: cannot go back to the previous local directory Commit: https://github.com/vim/vim/commit/002bc79991286934a9593b80635c27d4238cdfc4 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 5 22:33:42 2020 +0200 patch 8.2.0909: cannot go back to the previous local directory Problem: Cannot go back to the previous local directory. Solution: Add "tcd -" and "lcd -". (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4362)
author Bram Moolenaar <Bram@vim.org>
date Fri, 05 Jun 2020 22:45:04 +0200
parents c2beb6baa42c
children 300fbeef8c82
comparison
equal deleted inserted replaced
20710:24fa685e72e9 20711:d91b8d1e5198
724 rettv->v_type = VAR_STRING; 724 rettv->v_type = VAR_STRING;
725 rettv->vval.v_string = NULL; 725 rettv->vval.v_string = NULL;
726 726
727 if (argvars[0].v_type != VAR_STRING) 727 if (argvars[0].v_type != VAR_STRING)
728 // Returning an empty string means it failed. 728 // Returning an empty string means it failed.
729 // No error message, for historic reasons.
729 return; 730 return;
730 731
731 // Return the current directory 732 // Return the current directory
732 cwd = alloc(MAXPATHL); 733 cwd = alloc(MAXPATHL);
733 if (cwd != NULL) 734 if (cwd != NULL)