vim-floaterm icon indicating copy to clipboard operation
vim-floaterm copied to clipboard

Cannot toggle terminal when theres many lines

Open TroySigX opened this issue 2 years ago • 0 comments

Before reporting

  • Please make sure you have searched through the F.A.Q. first.

  • Please make sure you are using the latest version of this plugin.

  • It's better to use English as it's more friendly to other non-Chinese native users.

Environment

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

below.

floaterm: health#floaterm#check

common

  • INFO: Platform: linux
  • INFO: Nvim: NVIM v0.7.2
  • INFO: Plugin: e3f2d94

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_position = 'topright' let g:floaterm_width = 0.6 let g:floaterm_height = 0.6

noremap <F9> :w<CR>:FloatermToggle<CR> inoremap <F9> <C-><C-n> :w<CR>:FloatermToggle<CR> tnoremap <F9> <C-><C-n> :FloatermToggle<CR>

Describe your question, feature request, or bug.

When there's many lines in the terminal, I cannot use F9 to close the terminal

Steps to reproduce

Keep entering command "echo 123" in the terminal for around 10 times

Using the minimal vimrc

set nocompatible
set hidden
set termguicolors
set runtimepath^=/path/to/vim-floaterm
filetype plugin indent on
syntax on

Steps to reproduce the behavior:

Keep entering command "echo 123" in the terminal for around 10 times. Then press F9.

Actual behaviour

Cannot close terminal

Expected behaviour

Able to close terminal

Screenshots(Optional, GIF is better)

TroySigX avatar Sep 09 '22 02:09 TroySigX