voldikss / vim-floaterm

:computer: Terminal manager for (neo)vim
MIT License
2.5k stars 80 forks source link

The cursor did not reach the original window after Ranger exited #308

Closed pCandKa closed 3 years ago

pCandKa commented 3 years ago

Environment

If you are using vim(not neovim), fill in the following blanks

If you are using neovim, just run :checkhealth floaterm and post the content

below.

## common
    - INFO: Platform: linux                                                                                    
    - INFO: Nvim: NVIM v0.6.0-dev                                                                              
    - INFO: Plugin: daf9389                            
## terminal
    - OK: Terminal emulator is available                
## floating
    - OK: Floating window is available

Configurations related to vim-floaterm in vimrc(i.e. g:floaterm_xxx):

let g:floaterm_opener = 'tabe'                   
let g:floaterm_autoclose = 0                                                                 
let g:floaterm_height = 0.7                                                                         
let g:floaterm_width = 0.7

Describe your question, feature request, or bug.

When I run Ranger with FloatTerm. Exit from Ranger without opening files.The cursor in the file moves to the window of another plug-in. another plug is wfxr/code-minimap

Steps to reproduce

Using the minimal vimrc

set hidden
filetype plugin indent on
syntax on

Steps to reproduce the behavior: 1.perform: FloatermNew ranger 2.After opening the Ranger, press Q to exit

Screenshots(Optional, GIF is better)

https://user-images.githubusercontent.com/69684715/127169670-2cb07259-fbdc-4ab5-b030-b134fa013a01.mp4

voldikss commented 3 years ago

Sorry but this can not be controlled by vim-floaterm. This problem is unfixable.