From 66874bd5f661657e9af7d1b02ed5a736d0cefdf9 Mon Sep 17 00:00:00 2001 From: Dheepak Krishnamurthy Date: Sun, 9 Aug 2020 20:18:41 -0600 Subject: [PATCH] Fix variables --- lua/lazygit.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lazygit.lua b/lua/lazygit.lua index afeae2e..33f9b2c 100644 --- a/lua/lazygit.lua +++ b/lua/lazygit.lua @@ -114,7 +114,7 @@ local function open_floating_window() LAZYGIT_LOADED = true end -- create file window, enter the window, and use the options defined in opts - local file_window = api.nvim_open_win(LAZYGIT_BUFFER, true, opts) + local _ = api.nvim_open_win(LAZYGIT_BUFFER, true, opts) vim.bo[LAZYGIT_BUFFER].filetype = 'lazygit' @@ -125,7 +125,7 @@ local function open_floating_window() -- use autocommand to ensure that the border_buffer closes at the same time as the main buffer local cmd = [[autocmd WinLeave silent! execute 'hide']] vim.cmd(cmd) - local cmd = [[autocmd WinLeave silent! execute 'silent bdelete! %s']] + cmd = [[autocmd WinLeave silent! execute 'silent bdelete! %s']] vim.cmd(cmd:format(border_buffer)) end