Skip to content

[BUG?] When closing one of two opened files coc explorer is the only buffer visible #525

@cpfaff

Description

@cpfaff

Describe the bug

When opening vim in a project, open the explorer. Then open one file. Then go to the explorer and open another file. When closing the first file with :bd! the explorer is the only buffer that shows. However I would expect the first open file to appear next to the explorer instead.

Result from CocInfo

## versions

vim version: NVIM v0.7.0
node version: v18.1.0
coc.nvim version: 0.0.80-fb8bcf53 2022-05-13 21:15:23 +0800
coc.nvim directory: /home/user/.config/nvim/plugged/coc.nvim
term: st-256color
platform: linux

## Log of coc.nvim

2022-05-14T06:00:42.272 INFO (pid:273662) [plugin] - coc.nvim initialized with node: v18.1.0 after 309ms
2022-05-14T06:00:43.597 INFO (pid:273662) [attach] - receive notification: showInfo []

Steps to reproduce
Steps to reproduce the behavior:

  1. execute nvim
  2. :CocExplorer
  3. Open two files from the explorer
  4. Close the first file using "bd!"
  5. Only explorer is visible although there is the other file still open in a buffer

Expected behavior

I would expect to get back to the first file appearing next to the explorer instead to the explorer only after closing the second opened file.

Screenshots

no screenshots

Additional context

I am using the explorer version 0.24.1. In:

NVIM v0.7.0
Build type: Release
LuaJIT 2.1.0-beta3
Übersetzt von builduser

Features: +acl +iconv +tui
See ":help feature-compile"

          System-vimrc-Datei: "$VIM/sysinit.vim"
     Voreinstellung für $VIM: "/usr/share/nvim"

Run :checkhealth for more info

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussenhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions