Skip to content

Extra padding on bottom when showTabsInTitlebar is false #19308

@jb49088

Description

@jb49088

Windows Terminal version

1.23.12371.0

Windows build number

10.0.26100.0

Other Software

WSL:

  • WSL version: 2.5.9.0
  • Kernel version: 6.6.87.2-1
  • WSLg version: 1.0.66
  • MSRDC version: 1.2.6074
  • Direct3D version: 1.611.1-81528511
  • DXCore version: 10.0.26100.1-240331-1435.ge-release
  • Windows version: 10.0.26100.4946

Neovim:

  • NVIM v0.11.3
  • Build type: Release
  • LuaJIT 2.1.1741730670

Plugin manager:

Plugin with interaction:

Steps to reproduce

  1. Make sure Windows Terminal is >= version 1.23.12371.0:
Image
  1. This bug only occurs with these specific Windows Terminal settings applied:
Image

Hide the title bar: Off
Always show tabs: Off

  1. Launch Neovim inside WSL with this minimal init.lua including a plugin manager and the plugin with the interaction along with it's required dependencies:
-- bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git", "clone", "--filter=blob:none",
    "https://github.com/folke/lazy.nvim.git", lazypath,
  })
end
vim.opt.rtp:prepend(lazypath)

require("lazy").setup({
  -- install noice, along with it's dependencies
  {
    "folke/noice.nvim",
    event = "VeryLazy",
    opts = {
    },
    dependencies = {
      "MunifTanjim/nui.nvim",
    }
  }
})
  1. Observe the extra padding below the statusline:
Image
  1. Note that this padding is independent from these settings:
Image
  1. To prove the above, change all padding to 0 and hide scrollbar visibility:
Image
  1. Observe the extra padding's persistence:
Image
  1. To prove that this only happens with the setting applied specified in step 2, turn both Hide the title bar and
    Always show tabs back on:
Image
  1. Observe the extra padding disappear:
Image

The extra padding does not appear on Windows Terminal version: 1.22.12111.0 no matter what combination of settings/plugins you use. You can follow the steps above with any combination of settings/plugins and the padding won't appear.

Note: This issue specifically occurs with noice.nvim, a plugin that removes the traditional command line interface. (I tested with the base vim setting that also removes the command line vim.opt.cmdheight = 0and the bug did not appear.(If you decide to test this, you should restart your terminal to ensure stale states do not remain.))

Expected Behavior

No padding at the bottom

Actual Behavior

Padding at the bottom

Metadata

Metadata

Assignees

No one assigned

    Labels

    Help WantedWe encourage anyone to jump in on these.Impact-VisualIt look bad.Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsPriority-3A description (P3)Product-TerminalThe new Windows Terminal.

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions