mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 00:08:19 +00:00
vim-patch:9.0.0789: dummy buffer ends up in a window
Problem: Dummy buffer ends up in a window.
Solution: Disallow navigating to a dummy buffer.
8f3c3c6cd0
This commit is contained in:
@@ -1224,6 +1224,11 @@ int do_buffer(int action, int start, int dir, int count, int forceit)
|
||||
}
|
||||
return FAIL;
|
||||
}
|
||||
if ((action == DOBUF_GOTO || action == DOBUF_SPLIT) && (buf->b_flags & BF_DUMMY)) {
|
||||
// disallow navigating to the dummy buffer
|
||||
semsg(_(e_nobufnr), count);
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
// delete buffer "buf" from memory and/or the list
|
||||
if (unload) {
|
||||
|
Reference in New Issue
Block a user