diff options
Diffstat (limited to 'lua/lvim/utils/functions.lua')
| -rw-r--r-- | lua/lvim/utils/functions.lua | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/lua/lvim/utils/functions.lua b/lua/lvim/utils/functions.lua index 1cb8ec8e..efc4b5eb 100644 --- a/lua/lvim/utils/functions.lua +++ b/lua/lvim/utils/functions.lua @@ -2,8 +2,9 @@ local M = {}  function M.smart_quit()    local bufnr = vim.api.nvim_get_current_buf() +  local buf_windows = vim.call("win_findbuf", bufnr)    local modified = vim.api.nvim_buf_get_option(bufnr, "modified") -  if modified then +  if modified and #buf_windows == 1 then      vim.ui.input({        prompt = "You have unsaved changes. Quit anyway? (y/n) ",      }, function(input) | 
