-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -942,18 +942,18 @@ function FzfWin:close(fzf_bufnr) | |
-- remove all windows from the restore cmd that have been closed in the meantime | ||
-- if we're not doing this the result might be all over the place | ||
local winnrs = vim.tbl_map(function(win) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
TheBlob42
Author
Contributor
|
||
return vim.api.nvim_win_get_number(win) | ||
return vim.api.nvim_win_get_number(win) .. "" | ||
end, vim.api.nvim_tabpage_list_wins(0)) | ||
|
||
local cmd = "" | ||
local cmd = {} | ||
for cmd_part in string.gmatch(self.winrestcmd, "[^|]+") do | ||
local winnr = cmd_part:match("(.)resize") | ||
if vim.tbl_contains(winnrs, winnr) then | ||
cmd = cmd .. cmd_part | ||
table.insert(cmd, cmd_part) | ||
end | ||
end | ||
|
||
vim.cmd(cmd) | ||
vim.cmd(table.concat(cmd, "|")) | ||
end | ||
if self.hls_on_close then | ||
-- restore search highlighting if we disabled it | ||
|
@TheBlob42 still not really working at all with neogit for example.