Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Close popup if output.

  • Loading branch information...
commit 7887dbd61dc178f44f625fe5a813e2a96c7e36f6 1 parent f5e7bea
@Shougo Shougo authored
Showing with 7 additions and 11 deletions.
  1. +6 −11 autoload/vimshell/interactive.vim
  2. +1 −0  doc/vimshell.txt
View
17 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
@@ -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"}}}
@@ -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
View
1  doc/vimshell.txt
@@ -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.

0 comments on commit 7887dbd

Please sign in to comment.
Something went wrong with that request. Please try again.