wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
17.84k stars 799 forks source link

Panic on mouse right-click on the tabs in the tab bar #552

Closed carmelopellegrino closed 3 years ago

carmelopellegrino commented 3 years ago

Describe the bug

If I right-click on a tab, the tab selector show up. If I right-click again on any of the tabs wezterm panics.

Here is the panic traces:

Seems like rust is panicking to prevent mutex deadlock or something similar.

Environment:

To Reproduce

Just open wezterm with tab bar active and right-click twice the current tab.

Configuration

Probably not relevant, though I put it here:

return {
  font = wezterm.font("Fira Code"),
  font_size = 11.0,
  font_rules = {
    {
      italic = true,
      intensity = "Bold",
      font = wezterm.font("Victor Mono", {italic=true, bold=true}),
    },
    {
      intensity = "Bold",
      font = wezterm.font("Fira Code", {bold=true}),
    },
    {
      italic = true,
      font = wezterm.font("Victor Mono", {italic=true}),
    },
  },
  font_antialias = "Greyscale",
  font_hinting = "Full",
  bold_brightens_ansi_colors = true,
  line_height = 1.1,
  scrollback_lines = 100000,
  enable_tab_bar = true,
  window_background_opacity = 0.95,
  color_scheme = "fall",

  color_schemes = {
    ["fall"] = {
      foreground = "#aaaaaa",
      background = "#162228",
      cursor_bg = "#666666",
      cursor_border = "#aaaaaa",
      cursor_fg = "#aaaaaa",
      -- selection_bg = "#b5d5ff",
      -- selection_fg = "#000000",

      ansi = {"#202020","#ff6565","#93d44f","#eab93d","#204a87","#ce5c00","#89b6e2","#cccccc"},
      brights = {"#606060","#ff8d8d","#c8e7a8","#ffc123","#3465a4","#f57900","#46a4ff","#ffffff"},
    },
  },

  keys = {
    -- Make Option-Left equivalent to Alt-b; backward-word
    {key="LeftArrow", mods="OPT", action=wezterm.action{SendString="\x1bb"}},
    -- Make Option-Right equivalent to Alt-f; forward-word
    {key="RightArrow", mods="OPT", action=wezterm.action{SendString="\x1bf"}},
    -- Scroll tabs with CMD+Arrow and CTRL+SHIFT+Arrow
    {key="RightArrow", mods="CMD", action=wezterm.action{ActivateTabRelative=1}},
    {key="LeftArrow", mods="CMD", action=wezterm.action{ActivateTabRelative=-1}},
    {key="RightArrow", mods="CTRL|SHIFT", action=wezterm.action{ActivateTabRelative=1}},
    {key="LeftArrow", mods="CTRL|SHIFT", action=wezterm.action{ActivateTabRelative=-1}},
    -- Bind to Alt+Arrow
    {key="UpArrow", mods="OPT", action=wezterm.action{SendString="\x1b[1;3A"}},
    {key="DownArrow", mods="OPT", action=wezterm.action{SendString="\x1b[1;3B"}},
    -- Scroll to prompt
    {key="UpArrow", mods="SHIFT", action=wezterm.action{ScrollToPrompt=-1}},
    {key="DownArrow", mods="SHIFT", action=wezterm.action{ScrollToPrompt=1}},
    -- Scroll one line
    {key="UpArrow", mods="CTRL|SHIFT", action=wezterm.action{ScrollByLine=-1}},
    {key="DownArrow", mods="CTRL|SHIFT", action=wezterm.action{ScrollByLine=1}},  }
}

Expected behaviour

Not to panic :) A valid option could be to go back to the previously active tab.

carmelopellegrino commented 3 years ago

sorry, just found this is duplicate of issue #542

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.