ema2159 / centaur-tabs

Emacs plugin aiming to become an aesthetic, modern looking tabs plugin
GNU General Public License v3.0
743 stars 51 forks source link

Unexpected closing of tabs #225

Open rockstorm101 opened 10 months ago

rockstorm101 commented 10 months ago

Left-clicking on tabs sometimes closes the tab. How and when exactly it happens I can't say for sure. I tried enabling the close button (had it disabled by default) but it didn't make a difference. Steps to reproduce:

  1. Open two documents. Each gets their own tab. Now the second tab is focused.
  2. Left-click on the first tab. Now the first tab is focused.
  3. Left-click on the second tab. The second tab is (unexpectedly) closed.

My expectation was that on step 3, the second tab got focused instead of closed.

Is this a bug? If this behavior is to be expected, is it something I can disable somehow? It is pretty annoying.

Many thanks in advance. Let me know if you need more information/debugging.

-- Configuration

(require 'centaur-tabs)
(centaur-tabs-mode t)
(setq centaur-tabs-show-new-tab-button nil
      centaur-tabs-set-close-button nil
      centaur-tabs-height 24
      centaur-tabs-set-modified-marker t)
(centaur-tabs-change-fonts (face-attribute 'default :font) 110)
(centaur-tabs-headline-match)

-- System Information: Debian 13 Emacs 29.1

sanarise commented 7 months ago

I have this case reproduced if the active buffer is a dired buffer. Is it the same for you?

rockstorm101 commented 7 months ago

I have this case reproduced if the active buffer is a dired buffer. Is it the same for you?

Not sure to be honest. I've tested this with markdown files. Which I don't think open as dired buffers? In case it is relevant, I'm using markdown-mode. No Emacs expert here, so please bear with me.

marceloexc commented 6 months ago

This is happening to me as well when using org-mode