mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-26 07:25:18 +02:00
parent
70b86537bd
commit
d68c9bbeb2
@ -207,7 +207,7 @@ function! airline#extensions#tabline#buffers#clickbuf(minwid, clicks, button, mo
|
|||||||
elseif a:button is# 'm'
|
elseif a:button is# 'm'
|
||||||
" middle button - delete buffer
|
" middle button - delete buffer
|
||||||
|
|
||||||
if get(g:, 'airline#extensions#tabline#middle_click_preserves_windows', 0) == 0
|
if get(g:, 'airline#extensions#tabline#middle_click_preserves_windows', 0) == 0 || winnr('$') == 1
|
||||||
" just simply delete the clicked buffer. This will cause windows
|
" just simply delete the clicked buffer. This will cause windows
|
||||||
" associated with the clicked buffer to be closed.
|
" associated with the clicked buffer to be closed.
|
||||||
silent execute 'bdelete' a:minwid
|
silent execute 'bdelete' a:minwid
|
||||||
|
@ -963,7 +963,8 @@ Note: Enabling this extension will modify 'showtabline' and 'guioptions'.
|
|||||||
won't update airline on |:badd| commands) >
|
won't update airline on |:badd| commands) >
|
||||||
let airline#extensions#tabline#disable_refresh = 0
|
let airline#extensions#tabline#disable_refresh = 0
|
||||||
|
|
||||||
* preserve windows when closing a buffer from the bufferline (default: 0) >
|
* preserve windows when closing a buffer from the bufferline (neovim specific,
|
||||||
|
only works with buffers and not real tabs, default: 0) >
|
||||||
let airline#extensions#tabline#middle_click_preserves_windows = 1
|
let airline#extensions#tabline#middle_click_preserves_windows = 1
|
||||||
<
|
<
|
||||||
------------------------------------- *airline-taboo*
|
------------------------------------- *airline-taboo*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user