Skip to content

Commit

Permalink
- Close popup if output.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jul 1, 2011
1 parent f5e7bea commit 7887dbd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
17 changes: 6 additions & 11 deletions autoload/vimshell/interactive.vim
@@ -1,7 +1,7 @@
"=============================================================================
" FILE: interactive.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
" Last Modified: 14 Jun 2011.
" Last Modified: 01 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
Expand Down Expand Up @@ -112,16 +112,6 @@ function! vimshell#interactive#execute_pty_inout(is_insert)"{{{

call vimshell#interactive#execute_pty_out(a:is_insert)

if has_key(b:interactive.process, 'eof') && !b:interactive.process.eof
if a:is_insert
startinsert!
else
normal! $
endif

let b:interactive.output_pos = getpos('.')
endif

" Call postinput hook.
call vimshell#hook#call('postinput', l:context, l:in)
endfunction"}}}
Expand Down Expand Up @@ -282,6 +272,11 @@ function! vimshell#interactive#execute_pty_out(is_insert)"{{{
let b:interactive.output_pos = getpos('.')
endif

if a:is_insert && exists('*neocomplcache#is_enabled') && neocomplcache#is_enabled()
" If response delays, so you have to close popup manually.
call neocomplcache#close_popup()
endif

if b:interactive.process.eof
call vimshell#interactive#exit()
endif
Expand Down
1 change: 1 addition & 0 deletions doc/vimshell.txt
Expand Up @@ -219,6 +219,7 @@ CHANGELOG *vimshell-changelog*

2011-07-01
- Improved escape sequences.
- Close popup if output.

2011-06-25
- Changed <Plug>(vimshell_paste_prompt) behavior.
Expand Down

0 comments on commit 7887dbd

Please sign in to comment.