kassio/neoterm

With autojump set, toggle does not return back to last window

ajayvigneshk opened this issue · 0 comments

Describe the bug
With autojump set, toggle does not return back to last window

To Reproduce
Steps to reproduce the behavior:

  1. Execute :let g:neoterm_autojump=1
  2. press <C-w>v to create a vertical split
  3. press <C-w>w to switch to the other window
  4. Execute :Ttoggle
  5. Execute :Ttoggle again
  6. Observe that the cursor has returned not to the last window, but the other one

Expected behavior
Cursor should return to the window from which neoterm toggle was executed

Versions (Issues without this information will take longer to be answered/solved):

  • OS: macos
  • neoterm commit master
  • Add all the configuration you have for neoterm
(vim.api.nvim_set_var "neoterm_term_per_tab" 1)
(vim.api.nvim_set_var "neoterm_autoscroll" 1)
(vim.api.nvim_set_var "neoterm_autojump" 1)
(vim.api.nvim_set_var "neoterm_default_mod" :botright)
  • Vim or Neovim
    • vim
    • neovim
  • Version [vim --version]