From 6edda9063a63312191a26478207f56f138b4cb52 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 31 Jul 2020 20:25:12 +0200 Subject: [PATCH] Make choose environment buffer disappear if it's not visible anymore --- pythonx/jedi_vim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pythonx/jedi_vim.py b/pythonx/jedi_vim.py index 1fd0fa6..ea6f033 100644 --- a/pythonx/jedi_vim.py +++ b/pythonx/jedi_vim.py @@ -251,8 +251,8 @@ def choose_environment(): vim_command('belowright new') vim.current.buffer[:] = env_paths vim.current.buffer.name = "Hit Enter to Choose an Environment" - vim_command('setlocal buftype=nofile bufhidden=hide noswapfile readonly nomodifiable') - vim_command('noremap :bd') + vim_command('setlocal buftype=nofile bufhidden=wipe noswapfile nobuflisted readonly nomodifiable') + vim_command('noremap :bw') vim_command('noremap :PythonJedi jedi_vim.choose_environment_hit_enter()')