Skip to content

The float window of blame_line will be moved when move cursor in it #708

@YangEfei

Description

@YangEfei

Description

Hi there.
I was trying to call blame_line() and move my cursor to the float window of it. And then I moved my cursor by typing j and k in it, and strange things happened, the float window moved right when the cursor move.
I think it was caused by some updates since 683187285385a0dde6c62e2e6b16e325effdcf04, because it worked well before.

Neovim version

v0.8.0

Operating system and version

Linux

Expected behavior

No response

Actual behavior

My cursor is on the top of the float window
image

And when I move it down, the window will move to right...
image

Minimal config

vim.o.packpath = '/tmp/nvim/site'

local plugins = {
  gitsigns = 'https://github.com/lewis6991/gitsigns.nvim',
  -- ADD OTHER PLUGINS _NECESSARY_ TO REPRODUCE THE ISSUE
}

for name, url in pairs(plugins) do
  local install_path = '/tmp/nvim/site/pack/test/start/'..name
  if vim.fn.isdirectory(install_path) == 0 then
    vim.fn.system { 'git', 'clone', '--depth=1', url, install_path }
  end
end

require('gitsigns').setup{
  debug_mode = true, -- You must add this to enable debug messages
  -- ADD GITSIGNS CONFIG THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE
}

-- ADD INIT.LUA SETTINGS THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE

Steps to reproduce

As mention above.

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