Browse files

- Fixed cd internal command.

  • Loading branch information...
1 parent ff17d38 commit 65e869ec6d0a2a49f47284a56d59e2c7f62cd382 @Shougo Shougo committed Jul 10, 2011
Showing with 8 additions and 7 deletions.
  1. +5 −7 autoload/vimshell/commands/cd.vim
  2. +3 −0 doc/vimshell.txt
View
12 autoload/vimshell/commands/cd.vim
@@ -1,7 +1,7 @@
"=============================================================================
" FILE: cd.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
-" Last Modified: 07 Oct 2010
+" Last Modified: 10 Jul 2011.
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
@@ -86,13 +86,11 @@ function! s:command.execute(command, args, fd, context)"{{{
endif
endif
- if empty(b:vimshell.directory_stack) || getcwd() != b:vimshell.directory_stack[0]
- " Push current directory and filtering.
- call insert(filter(b:vimshell.directory_stack, 'v:val != ' . string(l:cwd)), l:cwd)
+ " Push current directory and filtering.
+ call insert(filter(b:vimshell.directory_stack, 'v:val != ' . string(l:cwd)), l:cwd)
- " Truncate.
- let b:vimshell.directory_stack = b:vimshell.directory_stack[: g:vimshell_max_directory_stack-1]
- endif
+ " Truncate.
+ let b:vimshell.directory_stack = b:vimshell.directory_stack[: g:vimshell_max_directory_stack-1]
if a:context.is_interactive
" Call chpwd hook.
View
3 doc/vimshell.txt
@@ -217,6 +217,9 @@ BUGS *vimshell-bugs*
==============================================================================
CHANGELOG *vimshell-changelog*
+2011-07-10
+- Fixed cd internal command.
+
2011-07-04
- Added <Plug>(vimshell_move_head) mapping.
- Improved <Plug>(vimshell_previous_prompt) and <Plug>(vimshell_next_prompt)

0 comments on commit 65e869e

Please sign in to comment.