summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-05 22:33:42 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-05 22:33:42 +0200
commit002bc79991286934a9593b80635c27d4238cdfc4 (patch)
tree777b6a2574f8dfe4ac76552a0a8e44ba005e7961 /src/structs.h
parent3fffa97159a427067b60c80ed4645e168cc5c4bd (diff)
downloadvim-git-002bc79991286934a9593b80635c27d4238cdfc4.tar.gz
patch 8.2.0909: cannot go back to the previous local directoryv8.2.0909
Problem: Cannot go back to the previous local directory. Solution: Add "tcd -" and "lcd -". (Yegappan Lakshmanan, closes #4362)
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h
index 8fb14d759..80b7cff1e 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -2994,6 +2994,8 @@ struct tabpage_S
char_u *tp_localdir; // absolute path of local directory or
// NULL
+ char_u *tp_prevdir; // previous directory
+
#ifdef FEAT_DIFF
diff_T *tp_first_diff;
buf_T *(tp_diffbuf[DB_COUNT]);
@@ -3397,6 +3399,7 @@ struct window_S
char_u *w_localdir; // absolute path of local directory or
// NULL
+ char_u *w_prevdir; // previous directory
#ifdef FEAT_MENU
vimmenu_T *w_winbar; // The root of the WinBar menu hierarchy.
winbar_item_T *w_winbar_items; // list of items in the WinBar