diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-01-17 14:40:46 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2017-01-17 14:46:26 -0800 |
commit | 044c2c3362193e140cb7f7c40bfc6feb51a3243b (patch) | |
tree | 053abb85eeca0d821f4bae908e796e9fccfc0991 /docs/source/usage/modes/global.rst | |
parent | 2db55f22afe1fec8d53711a8d31f3ebaea577e1a (diff) |
Print error when trying to close last buffer without enabling setting
If the last buffer if closed (using 'd' or ':bclose'), by default either
nothing will happen, or the user will be prompted whether he/she wants
to close without saving, and then nothing happens. This can be changed
by setting global.quit_on_last_bclose to True (it defaults to False).
This patch changes that behavior to preempt the prompt and adds a UI
notification that the relevant option is unset, and returns. It will
check the same conditions again after the yield statement since the
number of buffers or the options might have changed (it seems rather
unlikely that the options will change, but it's a tiny amount of code
with minimal performance impact and it's better to be safe).
Fixes #968
Diffstat (limited to 'docs/source/usage/modes/global.rst')
0 files changed, 0 insertions, 0 deletions