Skip to content

Commit

Permalink
- Fixed switch behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jun 26, 2013
1 parent fdafc9e commit ea334e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions autoload/vimshell.vim
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ function! vimshell#start(path, ...) "{{{
\ t:vimshell.last_vimshell_bufnr),
\ "buflisted(v:val) &&
\ getbufvar(v:val, '&filetype') ==# 'vimshell'")
if (exists('t:unite_buffer_dictionary')
\ && has_key(t:unite_buffer_dictionary, bufnr))
if (!exists('t:unite_buffer_dictionary')
\ || has_key(t:unite_buffer_dictionary, bufnr))
call s:switch_vimshell(bufnr, context, path)
return
endif
Expand Down
7 changes: 5 additions & 2 deletions doc/vimshell.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,14 @@ COMMANDS *vimshell-commands*

:VimShell [{options}...] [{path}] *:VimShell*
Runs vimshell. The {path} will be its current directory.

If you omit {path}, it uses Vim's current directory (or does
not change the current directory).

If another vimshell buffer exists in current tab, switches to
the vimshell buffer and changes its current directory to
{path}.
If you omit {path}, it uses Vim's current directory (or does
not change the current directory).
Note: This feature is if installed unite.vim only.

{options} are options for a vimshell buffer. See
|vimshell-options|.
Expand Down

0 comments on commit ea334e0

Please sign in to comment.