mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 06:18:16 +00:00
vim-patch:8.1.1547: functionality of bt_nofile() is confusing
Problem: Functionality of bt_nofile() is confusing.
Solution: Split into bt_nofile() and bt_nofilename().
26910de8b0
This commit is contained in:
@@ -482,7 +482,7 @@ static buf_T *find_buffer(typval_T *avar)
|
||||
* buffer, these don't use the full path. */
|
||||
FOR_ALL_BUFFERS(bp) {
|
||||
if (bp->b_fname != NULL
|
||||
&& (path_with_url(bp->b_fname) || bt_nofile(bp))
|
||||
&& (path_with_url(bp->b_fname) || bt_nofilename(bp))
|
||||
&& STRCMP(bp->b_fname, avar->vval.v_string) == 0) {
|
||||
buf = bp;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user