diff options
Diffstat (limited to 'vim')
-rw-r--r-- | vim/init/keymaps.vim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vim/init/keymaps.vim b/vim/init/keymaps.vim index 38bdd0e..3f861ea 100644 --- a/vim/init/keymaps.vim +++ b/vim/init/keymaps.vim | |||
@@ -236,13 +236,12 @@ endfunc | |||
236 | function! Bye() | 236 | function! Bye() |
237 | let windows = gettabinfo(tabpagenr())[0]['windows'] | 237 | let windows = gettabinfo(tabpagenr())[0]['windows'] |
238 | let bufs = gettabinfo(tabpagenr())[0]['variables']['bufs'] | 238 | let bufs = gettabinfo(tabpagenr())[0]['variables']['bufs'] |
239 | |||
239 | if len(windows) == 1 && len(bufs) == 1 | 240 | if len(windows) == 1 && len(bufs) == 1 |
240 | echo 'quit' | ||
241 | call QuitWithCheck() | 241 | call QuitWithCheck() |
242 | elseif &diff | 242 | elseif &diff |
243 | call CloseBuffersForDiff() | 243 | call CloseBuffersForDiff() |
244 | else | 244 | else |
245 | echo 'bdelete' | ||
246 | call CheckSave() | 245 | call CheckSave() |
247 | endif | 246 | endif |
248 | endfunction | 247 | endfunction |