aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/window.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2021-10-17 22:04:53 +0800
committerzeertzjq <zeertzjq@outlook.com>2021-10-17 22:04:53 +0800
commit60584c0245a55d72422686aa702132814145b0c1 (patch)
tree0bb558f11c5bd9e5bb0b4a51ea77530899767dd7 /src/nvim/window.c
parent34cfe745681189bbd8ec2543971a49e013bfebf9 (diff)
downloadrneovim-60584c0245a55d72422686aa702132814145b0c1.tar.gz
rneovim-60584c0245a55d72422686aa702132814145b0c1.tar.bz2
rneovim-60584c0245a55d72422686aa702132814145b0c1.zip
vim-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 vim/vim#4362) https://github.com/vim/vim/commit/002bc79991286934a9593b80635c27d4238cdfc4
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r--src/nvim/window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index 49d7c9c9f5..db71512a3b 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -3733,6 +3733,7 @@ void free_tabpage(tabpage_T *tp)
}
xfree(tp->tp_localdir);
+ xfree(tp->tp_prevdir);
xfree(tp);
}
@@ -4771,6 +4772,7 @@ static void win_free(win_T *wp, tabpage_T *tp)
}
xfree(wp->w_localdir);
+ xfree(wp->w_prevdir);
/* Remove the window from the b_wininfo lists, it may happen that the
* freed memory is re-used for another window. */