comparison src/window.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 42ab4d40e78f
children 0b4a9642b39c
comparison
equal deleted inserted replaced
20710:24fa685e72e9 20711:d91b8d1e5198
3807 hash_init(&tp->tp_vars->dv_hashtab); 3807 hash_init(&tp->tp_vars->dv_hashtab);
3808 unref_var_dict(tp->tp_vars); 3808 unref_var_dict(tp->tp_vars);
3809 #endif 3809 #endif
3810 3810
3811 vim_free(tp->tp_localdir); 3811 vim_free(tp->tp_localdir);
3812 vim_free(tp->tp_prevdir);
3812 3813
3813 #ifdef FEAT_PYTHON 3814 #ifdef FEAT_PYTHON
3814 python_tabpage_free(tp); 3815 python_tabpage_free(tp);
3815 #endif 3816 #endif
3816 3817
4972 { 4973 {
4973 vim_free(wp->w_tagstack[i].tagname); 4974 vim_free(wp->w_tagstack[i].tagname);
4974 vim_free(wp->w_tagstack[i].user_data); 4975 vim_free(wp->w_tagstack[i].user_data);
4975 } 4976 }
4976 vim_free(wp->w_localdir); 4977 vim_free(wp->w_localdir);
4978 vim_free(wp->w_prevdir);
4977 4979
4978 // Remove the window from the b_wininfo lists, it may happen that the 4980 // Remove the window from the b_wininfo lists, it may happen that the
4979 // freed memory is re-used for another window. 4981 // freed memory is re-used for another window.
4980 FOR_ALL_BUFFERS(buf) 4982 FOR_ALL_BUFFERS(buf)
4981 FOR_ALL_BUF_WININFO(buf, wip) 4983 FOR_ALL_BUF_WININFO(buf, wip)