Skip to content

Return to original window when closing toc or word count #2817

@petobens

Description

@petobens

Description

If I have a split buffer and either open the table of contents or the word count buffer and then quit those buffers then the cursor doesn't return to the original window.

Steps to reproduce

Note: I can add a minimal.tex file if this is not immediately reproducible.

  1. Open a foo.tex file with minimal content:
\documentclass{article}
\begin{document}
\section{Foo}
Foo
\end{document}
  1. Open the TOC or the count word buffer
  2. Press q to close such buffers.
    vimtex

Expected behavior

After 3. the cursor should return to the original window (right)

Actual behavior

It goes to the left window

Do you use a latexmkrc file?

No

VimtexInfo

System info:
  OS: Arch Linux
  Vim version: NVIM v0.10.0-dev-1413+g684e93054b
  Has clientserver: true
  Servername: /tmp/nvimsocket

VimTeX project: foo
  base: foo.tex
  root: /home/pedro/Desktop/foo-latex
  tex: /home/pedro/Desktop/foo-latex/foo.tex
  main parser: current file verified
  document class: article
  compiler: arara
    options:
      --log

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions