Skip to content

Commit

Permalink
- Improved vimshell#get_prompt().
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jul 13, 2013
1 parent b4bb89a commit d59a605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/vimshell.vim
Expand Up @@ -443,7 +443,7 @@ function! vimshell#get_prompt(...) "{{{
if &filetype ==# 'vimshell' &&
\ empty(b:vimshell.continuation)
let context = vimshell#get_context()
if context.prompt_expr != ''
if context.prompt_expr != '' && context.prompt_pattern != ''
return eval(context.prompt_expr)
endif

Expand Down

0 comments on commit d59a605

Please sign in to comment.