diff options
| author | wongxy <xiyao.wong@foxmail.com> | 2022-04-10 21:24:47 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-10 15:24:47 +0200 |
| commit | b7ae91c82b33f8f347fa060208adb3da80ae9260 (patch) | |
| tree | f3b39de3458bee1b87c0428c56863286d0ddcd31 /lua/telescope | |
| parent | 762d49f60749eac75979202194ad0ee177977a74 (diff) | |
fix(builtin.colorscheme): also restore &background (#1835)
Diffstat (limited to 'lua/telescope')
| -rw-r--r-- | lua/telescope/builtin/internal.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/telescope/builtin/internal.lua b/lua/telescope/builtin/internal.lua index 460540e..1421775 100644 --- a/lua/telescope/builtin/internal.lua +++ b/lua/telescope/builtin/internal.lua @@ -820,6 +820,7 @@ internal.buffers = function(opts) end internal.colorscheme = function(opts) + local before_background = vim.o.background local before_color = vim.api.nvim_exec("colorscheme", true) local need_restore = true @@ -910,6 +911,7 @@ internal.colorscheme = function(opts) picker.close_windows = function(status) close_windows(status) if need_restore then + vim.o.background = before_background vim.cmd("colorscheme " .. before_color) end end |
