aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-07-10 23:22:07 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-07-10 23:22:07 +0800
commit13ee21d48d8937ea33a1993725320889970fe86f (patch)
treea273ba0d0ee2ba5a25c1d3c668b23064073f1c6d /vim
parente3ef197ddd07f5711db97bb7fdbe838c474cba7f (diff)
Update
Diffstat (limited to 'vim')
-rw-r--r--vim/init/keymaps.vim3
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
236function! Bye() 236function! 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
248endfunction 247endfunction