Skip to content

Commit

Permalink
fix: don't move preview window while it's focused
Browse files Browse the repository at this point in the history
  • Loading branch information
ooesili committed Jan 4, 2023
1 parent 8164179 commit 72a43f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lua/gitsigns/popup.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions teal/gitsigns/popup.tl
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ function popup.create0(lines: {string}, opts: {string:any}, id: string): integer

-- update window position to follow the cursor when scrolling
api.nvim_create_autocmd({'WinScrolled'}, {
buffer = api.nvim_get_current_buf(),
group = group,
callback = function()
api.nvim_win_set_config(winid, opts1)
Expand Down

0 comments on commit 72a43f2

Please sign in to comment.