Skip to content

Bottom border is missing when the commit message is too long #841

@rockyzhang24

Description

@rockyzhang24

Description

First enable the border for preview window

require('gitsigns').setup {
  preview_config = {
    border = 'single',
  },
}

Then open an arbitrary file and run :lua require('gitsigns').blame_line({ full = true }) on a certain line with a long enough (longer than the screen height) commit message. The bottom border of the floating window is missing.

Screenshot 2023-07-17 at 19 48 53

(Just FYI: the file I was using in the pic is https://github.com/junegunn/fzf/blob/master/src/core.go)

Neovim version

NVIM v0.10.0-dev-551+ge27377e33

Operating system and version

macOS 13.4.1

Expected behavior

The bottom border should be shown as normal

Actual behavior

The bottom border of the floating window is missing

Minimal config

require('gitsigns').setup {
  preview_config = {
    border = 'single',
  },
}

Steps to reproduce

See the "Description" section above please.

Gitsigns debug messages

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions